mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved repository resolve support
This commit is contained in:
@@ -45,16 +45,16 @@ public class SQLServerAlterTableTest_11 extends TestCase {
|
||||
|
||||
{
|
||||
String output = SQLUtils.toSQLString(stmt, JdbcConstants.SQL_SERVER);
|
||||
Assert.assertEquals("ALTER TABLE dbo.doc_exd" //
|
||||
assertEquals("ALTER TABLE dbo.doc_exd" //
|
||||
+ "\n\tWITH NOCHECK ADD CONSTRAINT exd_check CHECK (column_a > 1);", output);
|
||||
}
|
||||
{
|
||||
String output = SQLUtils.toSQLString(stmt, JdbcConstants.SQL_SERVER, SQLUtils.DEFAULT_LCASE_FORMAT_OPTION);
|
||||
Assert.assertEquals("alter table dbo.doc_exd" //
|
||||
assertEquals("alter table dbo.doc_exd" //
|
||||
+ "\n\twith nocheck add constraint exd_check check (column_a > 1);", output);
|
||||
}
|
||||
Assert.assertEquals(1, visitor.getTables().size());
|
||||
Assert.assertEquals(1, visitor.getColumns().size());
|
||||
assertEquals(1, visitor.getTables().size());
|
||||
assertEquals(1, visitor.getColumns().size());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user