atk4 / schema

Few classes built on top of Agile Data that can take care of your SQL database schema
https://agiletoolkit.org/
MIT License
4 stars 5 forks source link

PDOException on SHOW TABLES #19

Open georgehristov opened 4 years ago

georgehristov commented 4 years ago

https://github.com/atk4/schema/blob/a43075334ada3c81b93af59b78d642442220cc71/src/Migration/MySQL.php#L42

For some reason PDO does not accept parameter for the expression and throws exception when preparing the statement

Exception text: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1

MariaDB 10.1.38 PHP 7.3.11

georgehristov commented 4 years ago

I believe this is related to https://github.com/atk4/data/issues/497