From 5fcb3c01a087e84ca9c3a2d581f05c8104d9e1b2 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Mon, 12 May 2008 18:16:10 +0000 Subject: [PATCH] OPENJPA-592. Committing on behalf of Jason Zheng. git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.1.x@655586 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java index 9b01fc66f..84736ddbc 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java @@ -241,6 +241,9 @@ public class MySQLDictionary Column col = super.newColumn(colMeta); if (col.isNotNull() && "0".equals(col.getDefaultString())) col.setDefaultString(null); + + col.setSchemaName(colMeta.getString("TABLE_CAT")); + return col; }