mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
HHH-13373 fix the bug that 'different sequence names in differnt dbs' breaks SequenceInformationExtractorMariaDBDatabaseImpl
This commit is contained in:
parent
4318349b4d
commit
8fb35947ff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user