mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Convert contrib/seg's input function to report errors softly
Reviewed by Tom Lane Discussion: https://postgr.es/m/a8dc5700-c341-3ba8-0507-cc09881e6200@dunslane.net
This commit is contained in:
@ -108,8 +108,8 @@ seg_in(PG_FUNCTION_ARGS)
|
||||
|
||||
seg_scanner_init(str);
|
||||
|
||||
if (seg_yyparse(result) != 0)
|
||||
seg_yyerror(result, "bogus input");
|
||||
if (seg_yyparse(result, fcinfo->context) != 0)
|
||||
seg_yyerror(result, fcinfo->context, "bogus input");
|
||||
|
||||
seg_scanner_finish();
|
||||
|
||||
|
Reference in New Issue
Block a user