Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

PDOException on SHOW TABLES #19

Open
georgehristov opened this issue Jan 2, 2020 · 1 comment
Open

PDOException on SHOW TABLES #19

georgehristov opened this issue Jan 2, 2020 · 1 comment
Assignees

Comments

@georgehristov
Copy link
Collaborator

if (!$this->connection->expr('show tables like []', [$table])->get()) {

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
Copy link
Collaborator Author

I believe this is related to atk4/data#497

@georgehristov georgehristov changed the title PDO_Exception on SHOW TABLES PDOException on SHOW TABLES Jan 4, 2020
@DarkSide666 DarkSide666 self-assigned this Jan 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants