You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original query (with fingerprint 45a041188bab2ec5):
CREATE TABLE public.ci_builds_runner_session (
id bigint NOT NULL,
build_id integer NOT NULL,
url character varying NOT NULL,
certificate character varying,
"authorization" character varying
)
Deparsed query (with fingerprint 0):
CREATE TABLE public.ci_builds_runner_session (
id bigint NOT NULL,
build_id int NOT NULL,
url varchar NOT NULL,
certificate varchar,
authorization varchar
);
And since authorization is a keyword, the deparsed query fails to parse again.
To reproduce:
const fs = require('fs')
const { parse, deparse } = require('pgsql-parser');
async function main() {
const stmts = parse(`
CREATE TABLE public.ci_builds_runner_session (
id bigint NOT NULL,
build_id integer NOT NULL,
url character varying NOT NULL,
certificate character varying,
"authorization" character varying
)
`)
const stmts2 = deparse(stmts[0])
console.log(stmts2)
}
main()
Original query (with fingerprint 45a041188bab2ec5):
Deparsed query (with fingerprint 0):
And since
authorization
is a keyword, the deparsed query fails to parse again.To reproduce:
Schema at https://github.com/prisma/database-schema-examples/tree/main/postgres/gitlab
The text was updated successfully, but these errors were encountered: