Skip to content

Detect syntax errors in Doctrine\DBAL\Connection::execute*() methods - #116

Merged
staabm merged 4 commits into
mainfrom
dbal-statements
Jan 17, 2022
Merged

staabm merged 4 commits into
mainfrom
dbal-statements

Conversation

@staabm

@staabm staabm commented Jan 17, 2022 •

Copy link
Copy Markdown
Owner

This adds support for executeQuery($sql, $params), executeCacheQuery($sql, $params), executeStatement($sql, $params)

prepare($sql) is not yet supported and can be implemented later

refs #94

@staabm
staabm merged commit eb80741 into main Jan 17, 2022
@staabm
staabm deleted the dbal-statements branch January 17, 2022 13:59
Comment thread config/dba.neon
- 'PDO::query#0'
- 'PDO::prepare#0'
- 'mysqli::query#0'
- 'Doctrine\DBAL\Connection::query#0'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO you could remove query and only support the latest APIs. Or you keep it but then I'd also add exec here and executeUpdate above in SyntaxErrorInPreparedStatementMethodRule for completeness.

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.

correct.. its just a few lines of config.. lets support them: #117

@Seldaek

Seldaek commented Jan 17, 2022

Copy link
Copy Markdown
Contributor

Oh, too slow ;) Thanks for all the good work here!

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.

3 participants