db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1850591 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/adapter/DerbyAdapter.java
Date Sun, 06 Jan 2019 19:00:34 GMT
Author: tv
Date: Sun Jan  6 19:00:34 2019
New Revision: 1850591

URL: http://svn.apache.org/viewvc?rev=1850591&view=rev
Log:
Derby supports getGeneratedKeys() but does not report it via JDBC, so we override the JDBC
response

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/adapter/DerbyAdapter.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/adapter/DerbyAdapter.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/adapter/DerbyAdapter.java?rev=1850591&r1=1850590&r2=1850591&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/adapter/DerbyAdapter.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/adapter/DerbyAdapter.java
Sun Jan  6 19:00:34 2019
@@ -163,6 +163,17 @@ public class DerbyAdapter extends Abstra
     }
 
     /**
+     * Derby supports this feature but does not report it via JDBC
+     *
+     * @see org.apache.torque.adapter.AbstractAdapter#useGetGeneratedKeys()
+     */
+    @Override
+    public boolean useGetGeneratedKeys()
+    {
+        return true;
+    }
+
+    /**
      * Build Derby-style query with limit or offset.
      * The resulting query may look like this:
      * <pre>



---------------------------------------------------------------------
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