pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add Oracle like handling of char arrays.
Date: Wed, 14 Mar 2018 00:38:08 +0000
Message-ID: <E1evuQi-0002ok-Ei@gemulon.postgresql.org> (raw)

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(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1evuQi-0002ok-Ei@gemulon.postgresql.org>
Permalink:  ../E1evuQi-0002ok-Ei@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1evuQi-0002ok-Ei@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: meskes@postgresql.org
  Subject: Re: pgsql: Add Oracle like handling of char arrays.
  In-Reply-To: <E1evuQi-0002ok-Ei@gemulon.postgresql.org>
  References: <E1evuQi-0002ok-Ei@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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