mirror of https://github.com/apache/openjpa.git
OPENJPA-966: Added missing super call from within MySQLDictionary.decorate(Connection) method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f758a191ee
commit
171fe56aa2
|
@ -147,6 +147,7 @@ public class MySQLDictionary
|
|||
}
|
||||
|
||||
public Connection decorate(Connection conn) throws SQLException {
|
||||
conn = super.decorate(conn);
|
||||
String driver = conf.getConnectionDriverName();
|
||||
if ("com.mysql.jdbc.ReplicationDriver".equals(driver))
|
||||
conn.setReadOnly(true);
|
||||
|
|
Loading…
Reference in New Issue