How can solve JSON column in H2

前端 未结 10 1887
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 13:39

I use in application MySQL 5.7 and I have JSON columns. When I try running my integration tests don\'t work because the H2 database can\'t create the table. This is the erro

10条回答
  •  悲&欢浪女
    2020-12-24 13:53

    I have solved the problem using TEXT type in H2. One must create a separate database script to create schema in H2 for tests and replace the JSON type by TEXT.

    It is still a problem since if you use Json function in queries, you will not be able to test those while with H2.

提交回复
热议问题