Hey guys, maybe you can help me...
I have the following line in the H2 datasource configuration:

<bean id="dataSource"
 
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName" value="org.h2.Driver" />
    <property name="url" value="jdbc:h2:mem:test_db;INIT=CREATE SCHEMA
IF NOT EXISTS test_db\\;RUNSCRIPT FROM '~/sql/
populate.sql';DB_CLOSE_DELAY=-1" />
</bean>

I get the following error when I'm running:

SQL state [90046];error code [90046]; URL format error; must be
"jdbc:h2:{ {.|mem:}[name] | [file:]fileName | {tcp|ssl}:
[//]server[:port][,server2[:port]]/name }[;key=value...]"
 but is "jdbc:h2:mem:test_db" [90046-160]; nested exception is
org.h2.jdbc
.JdbcSQLException: URL format error; must be "jdbc:h2:{ {.|mem:}[name]
| [file:]
fileName | {tcp|ssl}:[//]server[:port][,server2[:port]]/name }
[;key=value...]" b
ut is "jdbc:h2:mem:test_db" [90046-160]

How do I handle this ?, what's the problem here ?

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to