Skip to content

WIP: driver specific PDO SQL parsers #6852

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

Closed
wants to merge 1 commit into from

Conversation

mbeccati
Copy link
Contributor

@mbeccati mbeccati commented Apr 11, 2021

PoC of a pgsql specific parser, not fumbling on backslash characters, e.g. https://bugs.php.net/78534

@@ -308,6 +312,7 @@ struct pdo_dbh_methods {
/* if defined to NULL, PDO will use its internal transaction tracking state */
pdo_dbh_txn_func in_transaction;
pdo_dbh_get_gc_func get_gc;
pdo_dbh_sql_parser parser;
Copy link
Member

Choose a reason for hiding this comment

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

parser -> scanner, here and elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had a couple of branches, not 100% sure I pushed the very latest one.

I was a bit undecided between scanner and parser and went back and forth a number of times, but it sounds like scanner is the winner ;-)

@nikic
Copy link
Member

nikic commented Apr 12, 2021

I like this approach.

@mbeccati
Copy link
Contributor Author

Superseded by #14035

@mbeccati mbeccati closed this Jun 18, 2024
@mbeccati mbeccati deleted the pdo-pgsql-parser branch June 18, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants