Comments - Hibernate & MariaDB

6 years, 1 month ago Daniele Renda

I switched from Mysql 5.7 to MariaDB 10.2.13. I'm using jdbc connector 2.2.3 with my Spring application using Hibernate. With Mysql everything is fine but when I switch to MariaDB I've issues with Boolean: Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [enabled] in table [`Account`]; found [bit (Types#BIT)], but expecting [boolean default true (Types#BOOLEAN)]

I also forced the option &tinyInt1isBit=true in the connection string but the problem still persists.

Seems Mysql 5.7 and MariaDb 10.2.13 are not 100% compatible in this case.

Do you have some hints? Thanks

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.