mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 22:39:13 +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
@ -14,7 +14,7 @@
|
||||
|
||||
/**
|
||||
* An SQL dialect for MariaDB 10.3 and later, provides sequence support, lock-timeouts, etc.
|
||||
*
|
||||
*
|
||||
* @author Philippe Marschall
|
||||
*/
|
||||
public class MariaDB103Dialect extends MariaDB102Dialect {
|
||||
@ -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