Hibernate report query hibernate_sequence table error in spring-boot application starting on a multi-database mariadb server

Description

mariadb server:

MariaDB [(none)]> select table_schema,table_name from information_schema.TABLES where table_type='SEQUENCE';
------------------------------------+

table_schema

table_name

------------------------------------+

test

hibernate_sequence_1

mdb

hibernate_sequence

------------------------------------+

current connect to database is asd, but where not existing tables like hibernate_sequence

the hibernate class SequenceInformationExtractorMariaDBDatabaseImpl using above sql query two tales in other databases. Then execute following sql, we got the error message:

Environment

hibernate 5.4.2 final
spring-boot 2.2.0.M2
jdk-11

Assignee

Nathan Xu

Reporter

赵玉行

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure