summaryrefslogtreecommitdiff
path: root/contrib/seg/seg.c
diff options
context:
space:
mode:
authorAndrew Dunstan2022-12-23 14:17:24 +0000
committerAndrew Dunstan2022-12-23 14:17:24 +0000
commit878ce16056c087e2dcd7cc31cd7e4700f407a770 (patch)
treea70260dcd16c84ea40222a753105998f867b486b /contrib/seg/seg.c
parent7a310338f4dd3195376477d502e93fba5f165769 (diff)
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
Diffstat (limited to 'contrib/seg/seg.c')
-rw-r--r--contrib/seg/seg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c
index a7effc1b190..7f9fc24eb4b 100644
--- a/contrib/seg/seg.c
+++ b/contrib/seg/seg.c
@@ -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();