New upstream release.
* New upstream release.
* Remove debian/postgresql-8.4-orafce.lintian-overrides.
Christoph Berg
9 years ago
0 | orafce (3.0.13-1) experimental; urgency=medium | |
1 | ||
2 | * New upstream release. | |
3 | * Remove debian/postgresql-8.4-orafce.lintian-overrides. | |
4 | ||
5 | -- Christoph Berg <christoph.berg@credativ.de> Wed, 07 Jan 2015 10:13:33 +0100 | |
6 | ||
0 | 7 | orafce (3.0.7-3) unstable; urgency=medium |
1 | 8 | |
2 | 9 | * Fix invocation of orafce_sql_yyerror. Patch taken from upstream git. |
3 | 3 | Maintainer: Debian PostgreSQL Maintainers <pkg-postgresql-public@lists.alioth.debian.org> |
4 | 4 | Uploaders: Peter Eisentraut <petere@debian.org>, Christoph Berg <myon@debian.org> |
5 | 5 | Build-Depends: bison, debhelper (>= 9), flex, postgresql-server-dev-all (>= 153~) |
6 | Standards-Version: 3.9.5 | |
6 | Standards-Version: 3.9.6 | |
7 | 7 | Homepage: https://github.com/orafce/orafce |
8 | 8 | Vcs-Git: git://anonscm.debian.org/pkg-postgresql/orafce.git |
9 | 9 | Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/orafce.git |
3 | 3 | Maintainer: Debian PostgreSQL Maintainers <pkg-postgresql-public@lists.alioth.debian.org> |
4 | 4 | Uploaders: Peter Eisentraut <petere@debian.org>, Christoph Berg <myon@debian.org> |
5 | 5 | Build-Depends: bison, debhelper (>= 9), flex, postgresql-server-dev-all (>= 153~) |
6 | Standards-Version: 3.9.5 | |
6 | Standards-Version: 3.9.6 | |
7 | 7 | Homepage: https://github.com/orafce/orafce |
8 | 8 | Vcs-Git: git://anonscm.debian.org/pkg-postgresql/orafce.git |
9 | 9 | Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/orafce.git |
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 | From 2c635c6214753aab952293ebebe77db0fed00205 Mon Sep 17 00:00:00 2001 | |
1 | From: Pavel Stehule <pavel.stehule@gmail.com> | |
2 | Date: Sun, 24 Aug 2014 21:54:44 +0200 | |
3 | Subject: [PATCH] bugfix: to_date() crashes on 32 bit with certain date | |
4 | formats #15 | |
5 | ||
6 | fix messy conversions between timestamp and datum | |
7 | --- | |
8 | convert.c | 4 ++-- | |
9 | datefce.c | 12 +++++++----- | |
10 | 2 files changed, 9 insertions(+), 7 deletions(-) | |
11 | ||
12 | diff --git a/convert.c b/convert.c | |
13 | index f7520c8..83bd020 100644 | |
14 | --- a/convert.c | |
15 | +++ b/convert.c | |
16 | @@ -125,14 +125,14 @@ orafce_to_char_numeric(PG_FUNCTION_ARGS) | |
17 | Datum | |
18 | orafce_to_char_timestamp(PG_FUNCTION_ARGS) | |
19 | { | |
20 | - Timestamp date_txt = PG_GETARG_TIMESTAMP(0); | |
21 | + Timestamp ts = PG_GETARG_TIMESTAMP(0); | |
22 | text *result = NULL; | |
23 | ||
24 | if(nls_date_format && strlen(nls_date_format)) | |
25 | { | |
26 | /* it will return the DATE in nls_date_format*/ | |
27 | result = DatumGetTextP(DirectFunctionCall2(timestamp_to_char, | |
28 | - CStringGetDatum(date_txt), | |
29 | + TimestampGetDatum(ts), | |
30 | CStringGetDatum(cstring_to_text(nls_date_format)))); | |
31 | } | |
32 | ||
33 | diff --git a/datefce.c b/datefce.c | |
34 | index e228a12..1480fe0 100644 | |
35 | --- a/datefce.c | |
36 | +++ b/datefce.c | |
37 | @@ -590,15 +590,17 @@ _ora_date_round(DateADT day, int f) | |
38 | Datum ora_to_date(PG_FUNCTION_ARGS) | |
39 | { | |
40 | text *date_txt = PG_GETARG_TEXT_P(0); | |
41 | - Timestamp newDate, result; | |
42 | + Timestamp result; | |
43 | ||
44 | if(nls_date_format && strlen(nls_date_format)) | |
45 | { | |
46 | + Datum newDate; | |
47 | + | |
48 | /* it will return timestamp at GMT */ | |
49 | - newDate = DatumGetTimestamp(DirectFunctionCall2(to_timestamp, | |
50 | - CStringGetDatum(date_txt), | |
51 | - CStringGetDatum( | |
52 | - cstring_to_text(nls_date_format)))); | |
53 | + newDate = DirectFunctionCall2(to_timestamp, | |
54 | + CStringGetDatum(date_txt), | |
55 | + CStringGetDatum(cstring_to_text(nls_date_format))); | |
56 | + | |
57 | /* convert to local timestamp */ | |
58 | result = DatumGetTimestamp(DirectFunctionCall1(timestamptz_timestamp, newDate)); | |
59 | } | |
60 | -- | |
61 | 2.1.0 | |
62 |