Title: [445] trunk/activerecord-jdbc: fix parseInt bug
Revision
445
Author
olabini
Date
2007-04-09 02:35:59 -0400 (Mon, 09 Apr 2007)

Log Message

fix parseInt bug

Modified Paths


Diff

Modified: trunk/activerecord-jdbc/Manifest.txt (444 => 445)


--- trunk/activerecord-jdbc/Manifest.txt	2007-04-08 17:58:39 UTC (rev 444)
+++ trunk/activerecord-jdbc/Manifest.txt	2007-04-09 06:35:59 UTC (rev 445)
@@ -26,6 +26,7 @@
 test/h2_simple_test.rb
 test/derby_simple_test.rb
 test/postgres_simple_test.rb
+test/mysql_profile.rb
 test/activerecord/connections/native_jdbc_mysql/connection.rb
 test/activerecord/connection_adapters/type_conversion_test.rb
 test/minirunit/testHsqldb.rb

Modified: trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java (444 => 445)


--- trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java	2007-04-08 17:58:39 UTC (rev 444)
+++ trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java	2007-04-09 06:35:59 UTC (rev 445)
@@ -254,7 +254,9 @@
             int scale = -1;
             if(prec != null) {
                 precision = Integer.parseInt(prec);
-                scale = Integer.parseInt(scal);
+                if(scal != null) {
+                    scale = Integer.parseInt(scal);
+                }
             }
             String type = rs.getString(6);
             if(prec != null && precision > 0) {
_______________________________________________
Jruby-extras-devel mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to