forked from pganalyze/libpg_query
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return information about extracted constants from
pg_query_normalize
`PgQueryNormalizeResult` now includes information about the extracted constants, their location and extent, as well as the lexer token type and the value of constants as interpreted by the lexer. This makes `pg_query_normalize` usable not just for query identification, but also as a basis for automatic conversion of literal queries into constant-agnostic prepared statements or other applications where auto-parametrization of queries is useful. This also makes `pg_query_normalize` to use `base_yylex` instead of `core_yylex` which normalizes `USCONST` constants properly.
- Loading branch information
Showing
3 changed files
with
89 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters