if you run the MultiDBExample 2 times or more from the same sbt session you get the following output:
Version of slick-examples: 79eb15313c380359470f22e9d122a4cd9676d307
Repro steps inside of sbt:
run-main scala.slick.examples.lifted.MultiDBExample
[info] Running scala.slick.examples.lifted.MultiDBExample
Running test against H2
Value for key 'foo': Some(bar)
Value for key 'baz': None
Using the helper: (foo,bar)
Running test against SQLite
Value for key 'foo': Some(bar)
Value for key 'baz': None
Using the helper: (foo,bar)
[success] Total time: 3 s, completed Oct 24, 2012 4:49:20 PM
run-main scala.slick.examples.lifted.MultiDBExample
[info] Running scala.slick.examples.lifted.MultiDBExample
Running test against H2
Value for key 'foo': Some(bar)
Value for key 'baz': None
Using the helper: (foo,bar)
Running test against SQLite
java.lang.UnsatisfiedLinkError: Native Library /private/var/folders/x1/9zmqtm7173v_f861bbd_19300000gn/T/sqlite-3.6.20-libsqlitejdbc.jnilib already loaded in another classloader
Value for key 'foo': Some(bar)
Value for key 'baz': None
Using the helper: (foo,bar)
[success] Total time: 5 s, completed Oct 24, 2012 4:49:27 PM
if you run the MultiDBExample 2 times or more from the same sbt session you get the following output:
Version of slick-examples: 79eb15313c380359470f22e9d122a4cd9676d307
Repro steps inside of sbt: