Title: [757] trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java: I'm really starting to hate all databases.
- Revision
- 757
- Author
- olabini
- Date
- 2007-09-27 07:18:23 -0400 (Thu, 27 Sep 2007)
Log Message
I'm really starting to hate all databases. SQL Server returns 'NO ' when you can't set a column to null...
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java (756 => 757)
--- trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java 2007-09-27 11:02:00 UTC (rev 756)
+++ trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java 2007-09-27 11:18:23 UTC (rev 757)
@@ -343,10 +343,9 @@
}
_def = runtime.newString(def);
}
-
IRubyObject c = jdbcCol.callMethod(ctx,"new", new IRubyObject[]{recv.getInstanceVariable("@config"), runtime.newString(column_name),
_def, runtime.newString(type),
- runtime.newBoolean(!rs.getString(18).equals("NO"))});
+ runtime.newBoolean(!rs.getString(18).trim().equals("NO"))});
columns.add(c);
IRubyObject tp = (IRubyObject)tps.fastARef(c.callMethod(ctx,"type"));
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel