When using jruby and connecting to mysql via JDBC, an insert statement generates the following:
http://pastie.org/934319 basically, a Statement.RETURN_GENERATED_KEYS I tried to patch Sequel to fix this, but I'm not really confident my "fix" is the proper way. Here's the patch on the adaptors/jdbc.rb file: 173c173 < stmt.executeUpdate(sql) --- > stmt.executeUpdate(sql, > JavaSQL::Statement.RETURN_GENERATED_KEYS) It works for me for MySql, but I've no idea if its breaks other JDBC adaptors. Michael -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
