I cannot listen to a table that has a column of type custom enum with double quotes.
To Reproduce
Steps to reproduce the behavior:
CREATE TYPE "MOOD" AS ENUM ('sad', 'ok', 'happy');
create table test (
id bigint primary key,
mood "MOOD"
);
Insert a row
Poll for changes
Expected behavior
I get back database changes without error.
Actual behavior
ERROR: invalid input syntax for type json
DETAIL: Token "MOOD" is invalid.
CONTEXT: JSON data, line 1: ...:"bigint","value":1},{"name":"mood","type":""MOOD...
Describe the bug
I cannot listen to a table that has a column of type custom enum with double quotes.
To Reproduce
Steps to reproduce the behavior:
CREATE TYPE "MOOD" AS ENUM ('sad', 'ok', 'happy');
Expected behavior
I get back database changes without error.
Actual behavior
Additional context
wal2json issue: https://github.com/eulerto/wal2json/issues/224