HHH-13373 fix the bug that 'different sequence names in differnt dbs' breaks SequenceInformationExtractorMariaDBDatabaseImpl

This commit is contained in:
Nathan Xu 2019-12-13 20:00:55 -05:00 committed by Andrea Boriero
parent 4318349b4d
commit 8fb35947ff

View File

@ -57,7 +57,7 @@ public String getSelectSequenceNextValString(String sequenceName) {
@Override
public String getQuerySequencesString() {
return "select table_name from information_schema.TABLES where table_type='SEQUENCE'";
return "select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE'";
}
@Override