You can use double quotes around the field name.

But using PRIMARY as a field name in SQL is generally a bad idea - lots of DB's 
define that a reserved word.

On 2014-02-12 01:32, Shannon Carey wrote:
I am trying to use H2 as an in-memory database for unit testing some Hibernate 
code. However, my schema has a field
called "primary". H2 gives an error "expected "KEY"" when trying to create the field 
because apparently "primary" is a
keyword/reserved word.

Is there any known workaround?

--
You received this message because you are subscribed to the Google Groups "H2 
Database" 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/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to