cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r552301 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
Date Sun, 01 Jul 2007 12:43:51 GMT
Author: aadamchik
Date: Sun Jul  1 05:43:51 2007
New Revision: 552301

URL: http://svn.apache.org/viewvc?view=rev&rev=552301
Log:
openbase testing
(removing "AS" keyword from the table name specifier - open base doesn't support it, and the
rest of the databases do not care)

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java?view=diff&rev=552301&r1=552300&r2=552301
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/EJBQLFromTranslator.java
Sun Jul  1 05:43:51 2007
@@ -152,7 +152,10 @@
 
         String tableName = descriptor.getEntity().getDbEntity().getFullyQualifiedName();
         String alias = context.getTableAlias(id, tableName);
-        context.append(' ').append(tableName).append(" AS ").append(alias);
+
+        // not using "AS" to separate table name and alias name - OpenBase doesn't support
+        // "AS", and the rest of the databases do not care
+        context.append(' ').append(tableName).append(' ').append(alias);
         return alias;
     }
 }



Mime
View raw message