Ok, my bad.
For the record, it works when I use "jdbc:sqlite::memory:" and
"sqlite::memory:" under jruby and MRI, respectively. Not sure whether this
is the proper way to go?
Thanks again!
Bernard
On Monday, July 29, 2013 3:14:07 PM UTC+2, blambeau wrote:
>
> Hi!
>
> In the scenario below, the same database seems to be used for db1 and db2
> under JRuby, which leads to an error:
>
> db1 = ::Sequel.connect("jdbc:sqlite:memory")
> db1.create_table(:foo){ primary_key :id }
>
> db2 = ::Sequel.connect("jdbc:sqlite:memory")
> db2.create_table(:foo){ primary_key :id }
> # fails with SQL error or missing database (table `foo` already exists)
>
> As I don't observe the same behavior under MRI (using "sqlite:memory"), I
> wonder whether it's intentional or not.
>
> Thanks!
> Bernard
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.