db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r418857 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/sapdb/SapDbBuilder.java
Date Mon, 03 Jul 2006 21:32:07 GMT
Author: tomdz
Date: Mon Jul  3 14:32:06 2006
New Revision: 418857

URL: http://svn.apache.org/viewvc?rev=418857&view=rev
Log:
Added identity-read-back for SapDB/MaxDB

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/sapdb/SapDbBuilder.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/sapdb/SapDbBuilder.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/sapdb/SapDbBuilder.java?rev=418857&r1=418856&r2=418857&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/sapdb/SapDbBuilder.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/sapdb/SapDbBuilder.java Mon Jul
 3 14:32:06 2006
@@ -77,6 +77,19 @@
     /**
      * {@inheritDoc}
      */
+    public String getSelectLastIdentityValues(Table table)
+    {
+        StringBuffer result = new StringBuffer();
+
+        result.append("SELECT ");
+        result.append(getDelimitedIdentifier(getTableName(table)));
+        result.append(".CURRVAL FROM DUAL");
+        return result.toString();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
     protected void processTableStructureChanges(Database currentModel,
                                                 Database desiredModel,
                                                 Table    sourceTable,



Mime
View raw message