pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Add Oracle like handling of char arrays.
3+ messages / 2 participants
[nested] [flat]
* pgsql: Add Oracle like handling of char arrays.
@ 2018-03-14 00:38 Michael Meskes <meskes@postgresql.org>
2018-03-14 15:46 ` Re: pgsql: Add Oracle like handling of char arrays. Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Meskes @ 2018-03-14 00:38 UTC (permalink / raw)
To: pgsql-committers
Add Oracle like handling of char arrays.
In some cases Oracle Pro*C handles char array differently than ECPG. This patch
adds a Oracle compatibility mode to make ECPG behave like Pro*C.
Patch by David Rader <davidr@openscg.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3b7ab4380440d7b14ee390fabf39f6d87d7491e2
Modified Files
--------------
src/interfaces/ecpg/ecpglib/data.c | 49 ++++-
src/interfaces/ecpg/ecpglib/extern.h | 3 +-
src/interfaces/ecpg/preproc/ecpg.c | 6 +-
src/interfaces/ecpg/preproc/extern.h | 4 +-
src/interfaces/ecpg/test/Makefile | 2 +
src/interfaces/ecpg/test/compat_oracle/.gitignore | 2 +
src/interfaces/ecpg/test/compat_oracle/Makefile | 11 ++
.../ecpg/test/compat_oracle/char_array.pgc | 66 +++++++
src/interfaces/ecpg/test/ecpg_schedule | 1 +
.../ecpg/test/expected/compat_oracle-char_array.c | 219 +++++++++++++++++++++
.../test/expected/compat_oracle-char_array.stderr | 145 ++++++++++++++
.../test/expected/compat_oracle-char_array.stdout | 10 +
12 files changed, 513 insertions(+), 5 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Add Oracle like handling of char arrays.
2018-03-14 00:38 pgsql: Add Oracle like handling of char arrays. Michael Meskes <meskes@postgresql.org>
@ 2018-03-14 15:46 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2018-03-14 16:19 ` Re: pgsql: Add Oracle like handling of char arrays. Michael Meskes <meskes@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: Peter Eisentraut @ 2018-03-14 15:46 UTC (permalink / raw)
To: Michael Meskes <meskes@postgresql.org>; pgsql-committers
On 3/13/18 20:38, Michael Meskes wrote:
> Add Oracle like handling of char arrays.
>
> In some cases Oracle Pro*C handles char array differently than ECPG. This patch
> adds a Oracle compatibility mode to make ECPG behave like Pro*C.
Please check these compiler warnings:
char_array.pgc: In function 'main':
char_array.pgc:21:3: error: ISO C90 forbids mixed declarations and code
[-Werror=declaration-after-statement]
const char *ppppp = "XXXXX";
^~~~~
char_array.pgc: At top level:
char_array.pgc:63:13: error: 'warn' was used with no prototype before
its definition [-Werror=missing-prototypes]
static void warn(void)
^~~~
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Add Oracle like handling of char arrays.
2018-03-14 00:38 pgsql: Add Oracle like handling of char arrays. Michael Meskes <meskes@postgresql.org>
2018-03-14 15:46 ` Re: pgsql: Add Oracle like handling of char arrays. Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
@ 2018-03-14 16:19 ` Michael Meskes <meskes@postgresql.org>
0 siblings, 0 replies; 3+ messages in thread
From: Michael Meskes @ 2018-03-14 16:19 UTC (permalink / raw)
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; pgsql-committers
> Please check these compiler warnings:
> ...
Fixed, thanks.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-03-14 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14 00:38 pgsql: Add Oracle like handling of char arrays. Michael Meskes <meskes@postgresql.org>
2018-03-14 15:46 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2018-03-14 16:19 ` Michael Meskes <meskes@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox