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