Author: shawkins
Date: 2009-04-20 10:15:14 -0400 (Mon, 20 Apr 2009)
New Revision: 800
Modified:
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/mysql/MySQLTranslator.java
Log:
TEIID-379 fixing ansi mode set.
Modified:
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/mysql/MySQLTranslator.java
===================================================================
---
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/mysql/MySQLTranslator.java 2009-04-20
14:09:47 UTC (rev 799)
+++
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/mysql/MySQLTranslator.java 2009-04-20
14:15:14 UTC (rev 800)
@@ -81,7 +81,7 @@
Statement stmt = null;
try {
stmt = connection.createStatement();
- stmt.execute("set SESSION sql-mode = 'ANSI'"); //$NON-NLS-1$
+ stmt.execute("set SESSION sql_mode = 'ANSI'"); //$NON-NLS-1$
} catch (SQLException e) {
getEnvironment().getLogger().logError("Error setting ANSI mode", e);
//$NON-NLS-1$
} finally {
Show replies by date