Author: shawkins
Date: 2009-05-13 00:18:28 -0400 (Wed, 13 May 2009)
New Revision: 926
Modified:
trunk/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/mysql/TestMySQLTranslator.java
Log:
TEIID-105 adding mysql support for bit operations and creating a mysql 5 specific
translator/capabilities.
Modified:
trunk/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/mysql/TestMySQLTranslator.java
===================================================================
---
trunk/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/mysql/TestMySQLTranslator.java 2009-05-13
02:17:35 UTC (rev 925)
+++
trunk/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/mysql/TestMySQLTranslator.java 2009-05-13
04:18:28 UTC (rev 926)
@@ -62,7 +62,6 @@
TranslatedCommand tc = new
TranslatedCommand(EnvironmentUtility.createSecurityContext("user"), translator);
//$NON-NLS-1$
tc.translateCommand(obj);
-
// Check stuff
assertEquals("Did not get correct sql", expectedOutput, tc.getSql());
//$NON-NLS-1$
}
@@ -195,7 +194,7 @@
@Test public void testBitAnd() throws Exception {
String input = "select bitand(intkey, intnum) from bqt1.smalla";
//$NON-NLS-1$
- String output = "SELECT (SmallA.IntKey & SmallA.IntNum) FROM
SmallA"; //$NON-NLS-1$
+ String output = "SELECT convert((SmallA.IntKey & SmallA.IntNum), SIGNED
INTEGER) FROM SmallA"; //$NON-NLS-1$
TestMySQLTranslator.helpTestVisitor(MetadataFactory.BQT_VDB,
input,
Show replies by date