-
Notifications
You must be signed in to change notification settings - Fork 162
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
Invalid JSON is generated for quoted identifiers #35
Comments
To reproduce:
Produces (pg_recvlogical):
AFAICT it should be |
rcoup
added a commit
to koordinates/wal2json
that referenced
this issue
Nov 15, 2017
* use the postgres builtin escape_json() function * escape all type, schema, table, field names. Add a test. [eulerto#35] * leave `\x` alone unless it's a bytea prefix [eulerto#23] * escape generic logical decoding messages
Merged
rcoup
added a commit
to koordinates/wal2json
that referenced
this issue
Nov 16, 2017
* use the postgres builtin escape_json() function * escape all type, schema, table, field names. Add tests. [eulerto#35] * leave `\x` alone unless it's a bytea prefix [eulerto#23] * escape generic logical decoding messages with tests
rcoup
added a commit
to koordinates/wal2json
that referenced
this issue
Nov 27, 2017
* use the postgres builtin escape_json() function * escape all type, schema, table, field names. Add tests. [eulerto#35] * leave `\x` alone unless it's a bytea prefix [eulerto#23] * escape generic logical decoding messages with tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a qutoed identifiers are used - like when a table name contains space - then the JSON generator is not escaping the quotes and as a result the JSON is invalid.
The text was updated successfully, but these errors were encountered: