JDBC Sqlite3: undefined method `recreate_database'

I posted a comment on an issue that looks like the one I’m having at:
http://jira.codehaus.org/browse/JRUBY-1584

but I thought I’d ask here in case someone has a solution.

I’m running Rails 2.1 with JRuby 1.1.2 and I have
activerecord-jdbc-adapter
0.8.2 installed.

You can recreate this error by creating an empty rails application and
setting your database.yml to use the jdbcsqlite3 adapter:

development:

adapter: jdbcsqlite3

database: db/development.sqlite3

timeout: 5000

test:

adapter: jdbcsqlite3

database: db/test.sqlite3

timeout: 5000

production:

adapter: jdbcsqlite3

database: db/production.sqlite3

timeout: 5000

Then run:

$ jruby -S rake test:units
rake aborted!
undefined method `recreate_database’ for
#ActiveRecord::ConnectionAdapters::JdbcAdapter:0x32fa84

Does anybody have a solution for this problem?

On Thu, Jun 19, 2008 at 2:33 PM, Caleb L. [email protected]
wrote:

I posted a comment on an issue that looks like the one I’m having at:
http://jira.codehaus.org/browse/JRUBY-1584
but I thought I’d ask here in case someone has a solution.
I’m running Rails 2.1 with JRuby 1.1.2 and I have activerecord-jdbc-adapter
0.8.2 installed.
undefined method `recreate_database’ for
#ActiveRecord::ConnectionAdapters::JdbcAdapter:0x32fa84
Does anybody have a solution for this problem?

I think it just is what it is – see the comments in
http://jira.codehaus.org/browse/JRUBY-2438 – the sqlite3 adapter is
not quite functional in this area yet.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks for the reply. I’ll take a look at making a patch.

Awesome, looking forward to it!

On Thu, Jun 19, 2008 at 10:03 PM, Caleb L. [email protected]
wrote:

0.8.2 installed.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Caleb L.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Caleb, if you have problems or want some help let me know. I should
have
some time this weekend to look at this too. Thanks for helping out with
the
adapter.

Joe