IF function in H2 for MySQL compatibility

前端 未结 3 780
梦谈多话
梦谈多话 2021-02-13 23:11

I\'m using H2 (with MySQL compatibility mode) to write some automated tests against our software that uses MySQL. Unfortunately, it seems like H2 does not have have the IF

3条回答
  •  渐次进展
    2021-02-13 23:52

    Ended up just rewriting queries to use functions compatible with both database - H2, MySql. In my case, the functions in question were replaced with IFNULL.

提交回复
热议问题