db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r370491 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java
Date Thu, 19 Jan 2006 15:02:10 GMT
Author: mvdb
Date: Thu Jan 19 07:02:07 2006
New Revision: 370491

URL: http://svn.apache.org/viewcvs?rev=370491&view=rev
Log:
Don't determine anything if there is nothing to determine.

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

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java?rev=370491&r1=370490&r2=370491&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/JdbcModelReader.java Thu Jan 19
07:02:07 2006
@@ -922,6 +922,10 @@
      */
     protected void determineAutoIncrementFromResultSetMetaData(Table table, Column[] columnsToCheck)
throws SQLException
     {
+        if (columnsToCheck == null || columnsToCheck.length == 0)
+        {
+            return;
+        }
         StringBuffer query = new StringBuffer();
     
         query.append("SELECT ");



Mime
View raw message