Answer the question
In order to leave comments, you need to log in
PDO not working, where is the error, 42P08?
Prepare - "UPDATE public.users SET id=:id, surname=:surname WHERE surname=:surname"
Bind - array(":surname"=>"filipov", ":id"=>18) - tried without : first
Error:
SQLSTATE[42P08]: Ambiguous parameter: 7 ERROR: inconsistent types deduced for parameter $2 LINE 1: UPDATE public.users SET id=$1, surname=$2 WHERE surname=$2 ^ DETAIL: text versus character varying
Data type is correct. ..
But I can’t understand what the error is .. please help
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question