openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1569106 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
Date Mon, 17 Feb 2014 20:38:48 GMT
Author: curtisr7
Date: Mon Feb 17 20:38:48 2014
New Revision: 1569106

URL: http://svn.apache.org/r1569106
Log:
OPENJPA-2022 : Minor change to SchemaGenerator. Patch contributed by Jason Zwolak.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java?rev=1569106&r1=1569105&r2=1569106&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
Mon Feb 17 20:38:48 2014
@@ -692,7 +692,7 @@ public class SchemaGenerator {
         DBIdentifier name = DBIdentifier.NULL;
         DBIdentifier colName = DBIdentifier.NULL;
         for (int i = 0; pks != null && i < pks.length; i++) {
-            schemaName = DBIdentifier.trimToNull(schemaName);
+            schemaName = DBIdentifier.trimToNull(pks[i].getSchemaIdentifier());
             schema = group.getSchema(schemaName);
             if (schema == null)
                 continue;



Mime
View raw message