Detect MariaDB as MySQL (for mariadb-java-client 2.4+ compatibility)

Closes gh-22344
This commit is contained in:
Juergen Hoeller
2019-02-05 16:02:17 +01:00
parent 17caac8f1f
commit ac4525ddf8
2 changed files with 10 additions and 1 deletions

View File

@@ -186,6 +186,12 @@
</bean>
<bean id="MySQL" class="org.springframework.jdbc.support.SQLErrorCodes">
<property name="databaseProductNames">
<list>
<value>MySQL</value>
<value>MariaDB</value>
</list>
</property>
<property name="badSqlGrammarCodes">
<value>1054,1064,1146</value>
</property>