HiI have the following queryPREPARE chk ASUPDATE transcodes_detail td SET sortid=CASE WHEN $1 = 6 THEN $2::numeric ELSE td.sortid END WHERE detailid=$3execute chk (7,'1c',73)It fails as ERROR: invalid input syntax for type numeric: "1c"It seems to check all parameters before it tests whether parameter 1 equates to 6 (in this instance). Is there a way round this
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных