public
Description: ActiveRecord adapter for JDBC and JRuby
Homepage: http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter
Clone URL: git://github.com/nicksieger/activerecord-jdbc-adapter.git
JRUBY-2643: Fix JRuby newFixnum issue causing NSMEs w/ 1.1.2


git-svn-id: 
svn+ssh://rubyforge.org/var/svn/jruby-extras/trunk/activerecord-jdbc@1026 
8ba958d5-0c1a-0410-94a6-a65dfc1b28a6
nicksieger (author)
Tue Jun 17 22:30:02 -0700 2008
commit  ecef4fe72f0462344820a4b4e951b620e14fee93
tree    4125d1fb754491fa75fb134035f8981100d4b549
parent  6a40ad890289b70dd02ecaa9c98885783acfd436
...
614
615
616
617
 
618
619
620
...
614
615
616
 
617
618
619
620
0
@@ -614,7 +614,7 @@ public class JdbcAdapterInternalService implements BasicLibraryService {
0
                 Statement stmt = null;
0
                 try {
0
                     stmt = c.createStatement();
0
- return recv.getRuntime().newFixnum(stmt.executeUpdate(rubyApi.convertToRubyString(sql).getUnicodeValue()));
0
+ return recv.getRuntime().newFixnum((long)stmt.executeUpdate(rubyApi.convertToRubyString(sql).getUnicodeValue()));
0
                 } finally {
0
                     if (null != stmt) {
0
                         try {

Comments

    No one has commented yet.