From ce2a9f372d35001d376a477da89b126554327e46 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Mon, 15 May 2000 09:36:06 +0000 Subject: [PATCH] *** empty log message *** --- src/interfaces/ecpg/ChangeLog | 7 +++++++ src/interfaces/ecpg/lib/data.c | 6 +++--- src/interfaces/ecpg/preproc/Makefile.in | 2 +- src/interfaces/ecpg/preproc/type.c | 6 ++++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index e757adc226..29a59fa320 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -913,3 +913,10 @@ Sat Apr 8 13:10:12 CEST 2000 - Synced keyword.c. - Set library version to 3.1.0. - Set ecpg version to 2.7.0. + +Mon May 15 10:51:31 CEST 2000 + + - Added patch by SAKAIDA Masaaki to fix segfault. + - Set ecpg version to 2.7.1. + + diff --git a/src/interfaces/ecpg/lib/data.c b/src/interfaces/ecpg/lib/data.c index 1b97478e20..29675a8972 100644 --- a/src/interfaces/ecpg/lib/data.c +++ b/src/interfaces/ecpg/lib/data.c @@ -16,13 +16,13 @@ get_data(PGresult *results, int act_tuple, int act_field, int lineno, ECPGlog("get_data line %d: RESULT: %s\n", lineno, pval ? pval : ""); - /* Now the pval is a pointer to the value. */ - /* let's check is it really is an array if it should be */ + /* pval is a pointer to the value */ + /* let's check is it really is an array if it should be one */ if (isarray) { if (*pval != '{') { - ECPGlog("get_data data entry does not look like an array in line %d\n", lineno); + ECPGlog("get_data: data entry does not look like an array in line %d\n", lineno); ECPGraise(lineno, ECPG_DATA_NOT_ARRAY, NULL); return (false); } diff --git a/src/interfaces/ecpg/preproc/Makefile.in b/src/interfaces/ecpg/preproc/Makefile.in index 7317d0cb55..cfa3dae415 100644 --- a/src/interfaces/ecpg/preproc/Makefile.in +++ b/src/interfaces/ecpg/preproc/Makefile.in @@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global MAJOR_VERSION=2 MINOR_VERSION=7 -PATCHLEVEL=0 +PATCHLEVEL=1 CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \ -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \ diff --git a/src/interfaces/ecpg/preproc/type.c b/src/interfaces/ecpg/preproc/type.c index 8d292e1109..77e4b84026 100644 --- a/src/interfaces/ecpg/preproc/type.c +++ b/src/interfaces/ecpg/preproc/type.c @@ -198,6 +198,12 @@ static void ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, l void ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * typ, const char *ind_name, struct ECPGtype * ind_typ, const char *prefix, const char *ind_prefix) { + if (ind_typ == NULL) + { + ind_typ = &ecpg_no_indicator; + ind_name = "no_indicator"; + } + switch (typ->typ) { case ECPGt_array: