From e97e6b8262bd7ba83194b3255844a2c482c469bc Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Wed, 29 Nov 2017 14:06:01 +0800 Subject: [PATCH] --- src/org/redkale/source/DataSources.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/redkale/source/DataSources.java b/src/org/redkale/source/DataSources.java index 05b68c3c7..16d6f1d6a 100644 --- a/src/org/redkale/source/DataSources.java +++ b/src/org/redkale/source/DataSources.java @@ -92,6 +92,7 @@ public final class DataSources { } } if (readprop == null) throw new IOException("Cannot find (resource.name = '" + unitName + "') DataSource"); + if (writeprop == null) writeprop = readprop; String impl = readprop.getProperty(JDBC_DATASOURCE_CLASS, DataJdbcSource.class.getName()); if (DataJdbcSource.class.getName().equals(impl)) return new DataJdbcSource(unitName, readprop, writeprop); try {