|
Re: [jruby-user] Unit test rollback and autocommit on sqlserver 2005: msg#00193lang.jruby.user
Yeah, I found that to be a way around. What does setting that flag to false do? Does it reload all the fixtures after each test? I noticed that the test data wasn't in the database after the test completed. On Nov 21, 2007 8:28 PM, Nick Sieger <nicksieger@xxxxxxxxx> wrote: > > On 11/21/07, Jeffrey Wong <mindstormmaster@xxxxxxxxx> wrote: > > I'm using jruby and activerecord-jdbc with sql server 2005. When I > > try to run a basic test_truth test case I get "java.sql.SQLException: > > rollback() should not be called while in auto-commit-mode." I've > > tried to execute "set auto commit off" or "set auto-commit = 0" or > > "set autocommit = 0" in the test setup but it doesn't seem to make a > > difference. Any help? > > > > Transactions work perfectly fine within the application itself. > > Not sure what's happening (no sql server experience), but does setting > > self.use_transactional_fixtures = false > > in your test_helper.rb do anything? > > /Nick > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jruby-user] Unit test rollback and autocommit on sqlserver 2005: 00193, Nick Sieger |
|---|---|
| Next by Date: | Re: [jruby-user] JRuby on Rails on WebSphere: 00193, Stefan Magnus Landrø |
| Previous by Thread: | Re: [jruby-user] Unit test rollback and autocommit on sqlserver 2005i: 00193, Nick Sieger |
| Next by Thread: | Re: [jruby-user] Unit test rollback and autocommit on sqlserver 2005: 00193, Nick Sieger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |