Fixes issue #1692 for MySQL.
MySQL connector/J 8.x has changed
We currently only run the test suite on MySQL 5.x series, but I've tested locally with 6.x and 8.x as well.
I have not looked into #1485 yet, but I can see that the SQLServerProfile has its own override of
…heme pattern, the correct way in later versions is passing '%'. MySQL driver 8.x now defaults nullCatalogMeansCurrent to false, therefore the current catalog has to be passed in. Added "%" as tableNamePattern on SQLServer, Postgres, Oracle. Oracle has started not accepting null in newer versions, and "%" should be semantically the same.
I've rebased to master.
Also I've investigated other profiles for the same kind of issue, and it seems that Oracle does indeed suffer under this on newer versions. Progres supports "%" with the same behaivior as
The changes are covered by tests in JdbcMetaTest.
Actually the changes are covered. The problem is that the tests are only run with one version of the database drivers, and newer versions are behaving differently, so unless we add more database drivers to our CI test suite, we won't be able to test it.
What I've been is manually changed my database driver locally and repeatedly run the tests. To verify that the change works.