Title: [568] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb: Fix several problems with Derby, handling reals correctly
Revision
568
Author
olabini
Date
2007-05-10 12:50:34 -0400 (Thu, 10 May 2007)

Log Message

Fix several problems with Derby, handling reals correctly

Modified Paths


Diff

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb (567 => 568)


--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb	2007-05-10 00:19:25 UTC (rev 567)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb	2007-05-10 16:50:34 UTC (rev 568)
@@ -66,6 +66,7 @@
 
       def simplified_type(field_type)
         return :boolean if field_type =~ /smallint/i 
+        return :float if field_type =~ /real/i
         super
       end
     end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to