Skip to content

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

Merged
staabm merged 3 commits into
mainfrom
no-error-94
Jan 19, 2022
Merged

staabm merged 3 commits into
mainfrom
no-error-94

Conversation

@staabm

@staabm staabm commented Jan 19, 2022 •

Copy link
Copy Markdown
Owner

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
7 of 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
Copy Markdown
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