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:
Milosz Tylenda 2009-04-14 10:47:56 +00:00
parent f758a191ee
commit 171fe56aa2
1 changed files with 1 additions and 0 deletions

View File

@ -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);