H2 "runscript" command turns all table names into uppercase H2 "runscript" command turns all table names into uppercase mysql mysql

H2 "runscript" command turns all table names into uppercase


Found the issue. By default, h2 has this setting set to true DATABASE_TO_UPPER. Setting that to false will save the data as expected. So in my INIT command (before it), I entered:

 jdbc:h2:mem:~/test;DATABASE_TO_UPPER=false;INIT=runscript from '~/schema.sql'

Now the tables are being inserted in the correct case


Another option is to wrap table/column names in double quotes to preserve casing.

E.g. create table "products" instead of create table products