mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +03:00
Add error position to an error message
Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/6e7aa4a1-be6a-1a75-b1f9-83a678e5184a@2ndquadrant.com
This commit is contained in:
@@ -381,7 +381,8 @@ EvaluateParams(PreparedStatement *pstmt, List *params,
|
||||
i + 1,
|
||||
format_type_be(given_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. */
|
||||
assign_expr_collations(pstate, expr);
|
||||
|
Reference in New Issue
Block a user