On Fri, Oct 30, 2009 at 5:39 PM, Monroe, Grant <[email protected]> wrote: > Running execute with the postgres jdbc driver like so > > def self.up > execute('INSERT INTO foo (a,b) VALUES (1,2) RETURNING (id)') > end > > results in the following error > > ActiveRecord::ActiveRecordError: A result was returned when none > was expected.: INSERT INTO foo (a,b) VALUES (1,2) RETURNING (id) > > Any suggestions?
This looks like a PostgreSQL/JDBC issue. Which version of ar-jdbc are you using? It looks like some code in #insert has been disabled that is supposed to deal with this issue. I'll have to look into it for the next release. Would you mind filing a bug [1] with further details? Thanks, /Nick [1]: http://kenai.com/jira/browse/ACTIVERECORD_JDBC _______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
