fix table sort error

This commit is contained in:
SwallowGG
2024-04-26 16:11:48 +08:00
parent 0948376c64
commit 57667ccb65

View File

@ -91,7 +91,7 @@ public class SqlServerMetaData extends DefaultMetaService implements MetaData {
});
}
private static String SELECT_TABLES_SQL = "SELECT t.name AS TableName, mm.value as comment FROM sys.tables t LEFT JOIN(SELECT * from sys.extended_properties ep where ep.minor_id = 0 AND ep.name = 'MS_Description') mm ON t.object_id = mm.major_id WHERE t.schema_id= SCHEMA_ID('%S') ";
private static String SELECT_TABLES_SQL = "SELECT t.name AS TableName, mm.value as comment FROM sys.tables t LEFT JOIN(SELECT * from sys.extended_properties ep where ep.minor_id = 0 AND ep.name = 'MS_Description') mm ON t.object_id = mm.major_id WHERE t.schema_id= SCHEMA_ID('%S') ORDER by t.name";
@Override
public List<Table> tables(Connection connection, String databaseName, String schemaName, String tableName) {