db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1083546 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SQLBuilder.java
Date Sun, 20 Mar 2011 19:27:24 GMT
Author: tfischer
Date: Sun Mar 20 19:27:24 2011
New Revision: 1083546

URL: http://svn.apache.org/viewvc?rev=1083546&view=rev
Log:
also add oder by column to select clause  if case is not ignored

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SQLBuilder.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SQLBuilder.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SQLBuilder.java?rev=1083546&r1=1083545&r2=1083546&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SQLBuilder.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SQLBuilder.java
Sun Mar 20 19:27:24 2011
@@ -526,6 +526,7 @@ public final class SQLBuilder
                 else
                 {
                     orderByClause.add(orderByColumn);
+                    selectClause.add(tableName + '.' + columnName);
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message