Error When Setting up H2 Database

后端 未结 2 1107
囚心锁ツ
囚心锁ツ 2020-12-22 07:35

I have been getting this error when I\'m starting my application which on start up reads some data from a table:

org.h2.jdbc.JdbcSQLException: Unknown data t         


        
相关标签:
2条回答
  • 2020-12-22 07:54

    Here is how I solved it. The Enum type should be written like this!

    powerPlantType   VARCHAR(25) check (powerPlantType in ('OnOffType', 'RampUpType')),
    
    0 讨论(0)
  • 2020-12-22 08:12

    I've solved the same problem by updating h2 Maven library version to 1.4.200 instead of 1.4.187

    0 讨论(0)
提交回复
热议问题