JBoss Community Archive (Read Only)

Teiid 8.12

MySQL Translator (mysql/mysql5)

Also see common JDBC Translator Information

MySQL/MariaDB translation is supported by 2 translators.


The Mysql translator, known by the type name mysql, is for use with MySQL version 4.x.


The Mysql5 translator, known by the type name mysql5, is for use with MySQL version 5 or later.

Also supports compatible MySQL derivatives including MariaDB.


The MySQL Translators expect the database or session to be using ANSI mode. If the database is not using ANSI mode, an initialization query should be used on the pool to set ANSI mode:

set SESSION sql_mode = 'ANSI'

If you may deal with null timestamp values, then set the connection property zeroDateTimeBehavior=convertToNull. Otherwise you'll get conversion errors in Teiid that '0000-00-00 00:00:00' cannot be converted to a timestamp.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:27:03 UTC, last content change 2015-10-14 14:51:07 UTC.