You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by gm...@apache.org on 2007/11/07 16:30:30 UTC

svn commit: r592785 - in /db/torque: site/trunk/xdocs/changes.xml village/trunk/src/java/com/workingdogs/village/Column.java

Author: gmonroe
Date: Wed Nov  7 07:30:29 2007
New Revision: 592785

URL: http://svn.apache.org/viewvc?rev=592785&view=rev
Log:
Removed Village meta data check for read only column status.  This is not fully supported by a lot of JDBC drivers and causes Torque to fail with Derby's JDBC network driver.

Modified:
    db/torque/site/trunk/xdocs/changes.xml
    db/torque/village/trunk/src/java/com/workingdogs/village/Column.java

Modified: db/torque/site/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/db/torque/site/trunk/xdocs/changes.xml?rev=592785&r1=592784&r2=592785&view=diff
==============================================================================
--- db/torque/site/trunk/xdocs/changes.xml (original)
+++ db/torque/site/trunk/xdocs/changes.xml Wed Nov  7 07:30:29 2007
@@ -31,6 +31,11 @@
 
   <body>
   <release version="3.3-RC3" date="in SVN">
+    <action type="add" dev="gmonroe">
+      Removed Village meta data check for read only column status.  This is
+      not fully supported by a lot of JDBC drivers and causes Torque to 
+      fail with Derby's JDBC network driver.
+    </action>
     <action type="add" dev="tfischer">
       Maven 2 plugin: Added the attribute delimiterType for the sqlExec goal.
     </action>

Modified: db/torque/village/trunk/src/java/com/workingdogs/village/Column.java
URL: http://svn.apache.org/viewvc/db/torque/village/trunk/src/java/com/workingdogs/village/Column.java?rev=592785&r1=592784&r2=592785&view=diff
==============================================================================
--- db/torque/village/trunk/src/java/com/workingdogs/village/Column.java (original)
+++ db/torque/village/trunk/src/java/com/workingdogs/village/Column.java Wed Nov  7 07:30:29 2007
@@ -138,7 +138,12 @@
         this.columnType = rsmd.getColumnType(columnNumber);
         this.nullAllowed = rsmd.isNullable(columnNumber) == 1;
         this.autoIncrement = rsmd.isAutoIncrement(columnNumber);
-        this.readOnly = rsmd.isReadOnly(columnNumber);
+
+        // The JDBC spec is VERY unclear about what this means and as 
+        // such, it should be ignored.  Derby returns true all the time.
+        // Sybase and Informix say it's unsupported (and false).
+        this.readOnly = false; // rsmd.isReadOnly (columnNumber);
+        
         this.searchable = rsmd.isSearchable(columnNumber);
         this.scale = rsmd.getScale(columnNumber);
 



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