Title: [730] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mssql.rb: fixed default values in schema
Revision
730
Author
nolman
Date
2007-08-31 17:03:58 -0400 (Fri, 31 Aug 2007)

Log Message

fixed default values in schema

Modified Paths


Diff

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mssql.rb (729 => 730)


--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mssql.rb	2007-08-30 15:59:10 UTC (rev 729)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mssql.rb	2007-08-31 21:03:58 UTC (rev 730)
@@ -32,7 +32,7 @@
         when :string then unquote value
         when :integer then unquote(value).to_i rescue value ? 1 : 0
         when :primary_key then value == true || value == false ? value == true ? 1 : 0 : value.to_i 
-        when :decimal   then self.class.value_to_decimal(value)
+        when :decimal   then self.class.value_to_decimal(unquote value)
         when :datetime  then cast_to_datetime(value)
         when :timestamp then cast_to_time(value)
         when :time      then cast_to_time(value)
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to