Commit d4feadec authored by Peter Eisentraut's avatar Peter Eisentraut
parent c60e520f
...@@ -381,7 +381,8 @@ EvaluateParams(PreparedStatement *pstmt, List *params, ...@@ -381,7 +381,8 @@ EvaluateParams(PreparedStatement *pstmt, List *params,
i + 1, i + 1,
format_type_be(given_type_id), format_type_be(given_type_id),
format_type_be(expected_type_id)), format_type_be(expected_type_id)),
errhint("You will need to rewrite or cast the expression."))); errhint("You will need to rewrite or cast the expression."),
parser_errposition(pstate, exprLocation(lfirst(l)))));
/* Take care of collations in the finished expression. */ /* Take care of collations in the finished expression. */
assign_expr_collations(pstate, expr); assign_expr_collations(pstate, expr);
......
...@@ -113,6 +113,8 @@ DETAIL: Expected 5 parameters but got 6. ...@@ -113,6 +113,8 @@ DETAIL: Expected 5 parameters but got 6.
-- wrong param types -- wrong param types
EXECUTE q3(5::smallint, 10.5::float, false, 4::bigint, 'bytea'); EXECUTE q3(5::smallint, 10.5::float, false, 4::bigint, 'bytea');
ERROR: parameter $3 of type boolean cannot be coerced to the expected type double precision ERROR: parameter $3 of type boolean cannot be coerced to the expected type double precision
LINE 1: EXECUTE q3(5::smallint, 10.5::float, false, 4::bigint, 'byte...
^
HINT: You will need to rewrite or cast the expression. HINT: You will need to rewrite or cast the expression.
-- invalid type -- invalid type
PREPARE q4(nonexistenttype) AS SELECT $1; PREPARE q4(nonexistenttype) AS SELECT $1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment