[GH-ISSUE #74] Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation #52

Open
opened 2026-02-25 21:33:08 +03:00 by kerem · 0 comments
Owner

Originally created by @xarbot on GitHub (Mar 2, 2018).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/74

When you try to compare database data of databases which name contains some characters like - then stop with Exception.
The solution is to prefix the name of the database and tables with ` like the other commands of the query.
I don't know where i need to change this in source code.

Thanks

Originally created by @xarbot on GitHub (Mar 2, 2018). Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/74 When you try to compare database data of databases which name contains some characters like - then stop with Exception. The solution is to prefix the name of the database and tables with ` like the other commands of the query. I don't know where i need to change this in source code. Thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#52
No description provided.