From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add Oracle like handling of char arrays. |
Date: | 2018-03-14 00:38:08 |
Message-ID: | E1evuQi-0002ok-Ei@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)openscg(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2018-03-14 01:10:06 | Re: pgsql: Move strtoint() to common |
Previous Message | Andres Freund | 2018-03-13 23:26:02 | pgsql: Expand AND/OR regression tests around NULL handling. |