Fixed regression in the MySQL dialect where the reflection query used to
detect if a table exists would fail on very old MySQL 5.0 and 5.1 versions.
Fixes: #6151
Change-Id: I48e98542c3a1a49519a5d113e43ba6f917e8580e
--- /dev/null
+.. change::
+ :tags: bug, mysql, regression
+ :tickets: 6163
+
+ Fixed regression in the MySQL dialect where the reflection query used to
+ detect if a table exists would fail on very old MySQL 5.0 and 5.1 versions.
rs = connection.execute(
text(
- "SELECT * FROM information_schema.tables WHERE "
+ "SELECT COUNT(*) FROM information_schema.tables WHERE "
"table_schema = :table_schema AND "
"table_name = :table_name"
).bindparams(