This is in regard to the inserts being broken for HABTM in hsqldb ->
it's the Statement.executeUpdate(String,Int) which hsqldb doesn't
support issue (still).  I *may* have some cycles to go through and see
if there's any other places it may be an issue in the next couple of
weeks....  But anyhu, here's this one fixed...  (there's a issue
reported on it, #11567)

Index: jdbc_hsqldb.rb
===================================================================
--- jdbc_hsqldb.rb      (revision 665)
+++ jdbc_hsqldb.rb      (working copy)
@@ -121,6 +121,18 @@
       Integer(select_value("SELECT IDENTITY() FROM #{table}"))
     end
 
+        def _execute(sql, name = nil)
+      case sql.strip
+      when /\Ainsert/i:
+          insert(sql,name)
+      when /\A\(?\s*(select|show)/i:
+          @connection.execute_query(sql)
+      else
+        @connection.execute_update(sql)
+      end
+    end
+
+    
     def add_limit_offset!(sql, options) #:nodoc:
       offset = options[:offset] || 0
       bef = sql[7..-1]


_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to