Fix invocation of orafce_sql_yyerror
Patch taken from upstream git.
Closes: #749804
Martin Pitt
9 years ago
|
0 |
orafce (3.0.7-3) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* Fix invocation of orafce_sql_yyerror. Patch taken from upstream git.
|
|
3 |
(Closes: #749804)
|
|
4 |
|
|
5 |
-- Martin Pitt <mpitt@debian.org> Tue, 26 Aug 2014 19:03:01 +0200
|
|
6 |
|
0 | 7 |
orafce (3.0.7-2) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Add missing net-tools test dependency.
|
|
0 |
From a525592a848cda759053a63e99b4463b1a00a892 Mon Sep 17 00:00:00 2001
|
|
1 |
From: Pavel Stehule <pavel.stehule@gooddata.com>
|
|
2 |
Date: Mon, 25 Aug 2014 15:09:42 +0200
|
|
3 |
Subject: [PATCH] fix broken definition of orafce_sql_yyerror function
|
|
4 |
|
|
5 |
---
|
|
6 |
plvlex.c | 4 ++--
|
|
7 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
8 |
|
|
9 |
diff --git a/plvlex.c b/plvlex.c
|
|
10 |
index ce8b66b..1da3179 100644
|
|
11 |
--- a/plvlex.c
|
|
12 |
+++ b/plvlex.c
|
|
13 |
@@ -37,7 +37,7 @@ typedef struct {
|
|
14 |
PG_FUNCTION_INFO_V1(plvlex_tokens);
|
|
15 |
|
|
16 |
extern int orafce_sql_yyparse();
|
|
17 |
-extern void orafce_sql_yyerror(const char *message);
|
|
18 |
+extern void orafce_sql_yyerror(List **result, const char *message);
|
|
19 |
extern void orafce_sql_scanner_init(const char *str);
|
|
20 |
extern void orafce_sql_scanner_finish(void);
|
|
21 |
|
|
22 |
@@ -207,7 +207,7 @@ plvlex_tokens(PG_FUNCTION_ARGS)
|
|
23 |
|
|
24 |
orafce_sql_scanner_init(CSTRING(src));
|
|
25 |
if (orafce_sql_yyparse(&lexems) != 0)
|
|
26 |
- orafce_sql_yyerror("bogus input");
|
|
27 |
+ orafce_sql_yyerror(NULL, "bogus input");
|
|
28 |
|
|
29 |
orafce_sql_scanner_finish();
|
|
30 |
|
|
31 |
--
|
|
32 |
2.1.0
|
|
33 |
|
0 | 0 |
git-to_date-conversion
|
|
1 |
git-sqy_yyerror.patch
|
1 | 2 |
regress-no-alert
|