Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't report placeholder errors on non-SELECT statements for now #153

Merged
merged 3 commits into from
Jan 19, 2022

Conversation

staabm
Copy link
Owner

@staabm staabm commented Jan 19, 2022

with proper sql parsing, we should better detect the placeholders and therefore could validate this query

refs #94 (comment)

@staabm staabm mentioned this pull request Jan 19, 2022
13 tasks
{
// XXX with proper sql parsing, we should better detect the placeholders and therefore could validate this query
$sql = "
INSERT IGNORE INTO `s_articles_supplier` (`id`, `name`, `img`, `link`, `changed`) VALUES (:supplierId, 'TestSupplier', '', '', '2019-12-09 10:42:10');
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current placeholder parsing detects :42 of the datetime-col as a placeholder

@staabm staabm enabled auto-merge (squash) January 19, 2022 17:14
@staabm staabm merged commit 954101c into main Jan 19, 2022
@staabm staabm deleted the no-error-94 branch January 19, 2022 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants