8000 Escape column names while transforming for wal2json plugin. by shubhamdhama · Pull Request #663 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Escape column names while transforming for wal2json plugin. #663

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

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

shubhamdhama
Copy link
Contributor

Follow up of #595

@shubhamdhama shubhamdhama force-pushed the escape-col-names-for-wal2json branch from 71a5693 to 3eb84c2 Compare February 2, 2024 09:48
@dimitri dimitri merged commit 32fb16e into dimitri:main Feb 2, 2024
arajkumar added a commit to arajkumar/pgcopydb that referenced this pull request May 8, 2024
Previously, identifiers coming from the wal2json plugin weren't escaped, and we applied escaping to them while transforming to SQL. However, we recently added proper escaping for all identifiers coming from wal2json [1] using PQescapeIdentifier, which obsoletes the need for escaping in ld_transform.c.

[1] dimitri#663

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
dimitri pushed a commit that referenced this pull request May 13, 2024
* Remove redundant identifier escaping from transform

Previously, identifiers coming from the wal2json plugin weren't escaped, and we applied escaping to them while transforming to SQL. However, we recently added proper escaping for all identifiers coming from wal2json [1] using PQescapeIdentifier, which obsoletes the need for escaping in ld_transform.c.

[1] #663

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>

* Fix tests which always expects quotes on all identifiers

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>

---------

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
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
0