use of com.alibaba.druid.sql.ast.SQLDataType in project druid by alibaba.
the class Oracle2MySql_DataTypeTest_number_int method test_oracle2pg_int_15.
public void test_oracle2pg_int_15() throws Exception {
String sql = "number(15, 0)";
SQLDataType dataType = SQLParserUtils.createExprParser(sql, JdbcConstants.ORACLE).parseDataType();
SQLDataType pgDataType = SQLTransformUtils.transformOracleToMySql(dataType);
assertEquals("bigint", pgDataType.toString());
}
use of com.alibaba.druid.sql.ast.SQLDataType in project druid by alibaba.
the class Oracle2MySql_DataTypeTest_number_int method test_oracle2pg_int_14.
public void test_oracle2pg_int_14() throws Exception {
String sql = "number(14, 0)";
SQLDataType dataType = SQLParserUtils.createExprParser(sql, JdbcConstants.ORACLE).parseDataType();
SQLDataType pgDataType = SQLTransformUtils.transformOracleToMySql(dataType);
assertEquals("bigint", pgDataType.toString());
}
use of com.alibaba.druid.sql.ast.SQLDataType in project druid by alibaba.
the class Oracle2MySql_DataTypeTest_number_int method test_oracle2pg_int_19.
public void test_oracle2pg_int_19() throws Exception {
String sql = "number(19, 0)";
SQLDataType dataType = SQLParserUtils.createExprParser(sql, JdbcConstants.ORACLE).parseDataType();
SQLDataType pgDataType = SQLTransformUtils.transformOracleToMySql(dataType);
assertEquals("bigint", pgDataType.toString());
}
use of com.alibaba.druid.sql.ast.SQLDataType in project druid by alibaba.
the class Oracle2MySql_DataTypeTest_number_int method test_oracle2pg_int_13.
public void test_oracle2pg_int_13() throws Exception {
String sql = "number(13, 0)";
SQLDataType dataType = SQLParserUtils.createExprParser(sql, JdbcConstants.ORACLE).parseDataType();
SQLDataType pgDataType = SQLTransformUtils.transformOracleToMySql(dataType);
assertEquals("bigint", pgDataType.toString());
}
use of com.alibaba.druid.sql.ast.SQLDataType in project druid by alibaba.
the class Oracle2MySql_DataTypeTest_number_int method test_oracle2pg_int_11.
public void test_oracle2pg_int_11() throws Exception {
String sql = "number(11, 0)";
SQLDataType dataType = SQLParserUtils.createExprParser(sql, JdbcConstants.ORACLE).parseDataType();
SQLDataType pgDataType = SQLTransformUtils.transformOracleToMySql(dataType);
assertEquals("bigint", pgDataType.toString());
}
Aggregations