Fernando Sanchez (Perraco Labs)
12/06/2024, 9:28 PMallTablesNames()
returns an empty list. Works well in <= 0.56.0
I've debugged the library, and it seems the next function in the VendorDialect
class caches 0 tables out of the metadata:
protected fun getAllTableNamesCache(): Map<String, List<String>> {
val connection = TransactionManager.current().connection
if (_allTableNames == null) {
_allTableNames = connection.metadata { tableNames }
}
return _allTableNames!!
}
To reproduce use next:
transaction(db = database) {
currentDialect.allTablesNames()
}
Database: H2 / Embedded. Driver 2.2.220Chantal Loncle
12/13/2024, 3:00 PM