In v0.57.0 the method `allTablesNames()` returns a...
# exposed
f
In v0.57.0 the method
allTablesNames()
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:
Copy code
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:
Copy code
transaction(db = database) {
    currentDialect.allTablesNames()
}
Database: H2 / Embedded. Driver 2.2.220
👀 2
plus one 1
c
Thanks for reporting this @Fernando Sanchez (Perraco Labs). If you haven't already opened an issue for this on YouTrack, please consider taking a look at EXPOSED-662 and leaving a comment there about what you're experiencing. The changes in that issue are most likely related to yours as well, so your additional details may be useful moving forward.
👀 1