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
PostgreSQL: "incorrect binary data format in bind parameter x" #1817
Comments
I can not locally reproduce the problem for While creating the table I had problems though, had to follow the instructions here to get it working: https://dba.stackexchange.com/a/146222 Not sure if related. |
Details JIRA:
model AO_0AC321_RECOMMENDATION_AO {
CATEGORY String?
CUSTOM_FIELD_ID Int?
ID String @id
NAME String?
PERFORMANCE_IMPACT Float?
PROJECT_IDS String?
RESOLVED Boolean?
TYPE String?
} CREATE TABLE public."AO_0AC321_RECOMMENDATION_AO" (
"CATEGORY" character varying(255),
"CUSTOM_FIELD_ID" bigint,
"ID" character varying(255) NOT NULL,
"NAME" character varying(255),
"PERFORMANCE_IMPACT" double precision,
"PROJECT_IDS" text,
"RESOLVED" boolean,
"TYPE" character varying(255)
);
ALTER TABLE public. "AO_0AC321_RECOMMENDATION_AO" OWNER TO prisma;
ALTER TABLE ONLY public."AO_0AC321_RECOMMENDATION_AO"
ADD
CONSTRAINT "AO_0AC321_RECOMMENDATION_AO_pkey" PRIMARY KEY ("ID"); Exact same error from error log can be executed locally:
|
What version was this tested with? In the successful experiments I was using:
|
I had tested this with
Note to self, always use |
We should probably output that in the logs we are looking at in the test-utils automation, to be able to properly reproduce locally what we are seeing there, right @divyenduz? |
Yes! We should |
This one is no longer reproducible on the latest alpha (starting with 902)
|
There are lat long parameters in both entity. Its a only chance? |
Please open a new issue for this @umudik and provide all the information the bug issue template asks for. We will not be able to help you in a closed issue. |
To reproduce, import this (pasted below) SQL into a Postgres database.
Introspect this database
prisma2 introspect --url 'postgresql://root:prisma@localhost:5432/basic-twitter?schema=public'
Run the following client call:
Error observed:
Internal notes:
Test utils database(s) affected:
The text was updated successfully, but these errors were encountered: