From 85b2875a3a00c69a9ba194a93f731384a59015ca Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Thu, 2 Mar 2000 19:33:59 +0000 Subject: [PATCH] *** empty log message *** --- src/interfaces/ecpg/ChangeLog | 5 +++++ src/interfaces/ecpg/preproc/preproc.y | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index e6009b454e..846aa8a158 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -843,5 +843,10 @@ Thu Mar 2 11:25:09 CET 2000 - Fixed some parsing problems. A variable can now be a reserved SQL keyword. - Made sure double quotes in statements are correctly quoted. + +Thu Mar 2 17:42:16 CET 2000 + + - Print error message if an indicator array is given for input + variables. - Set library version to 3.1.0. - Set ecpg version to 2.7.0. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index a65c822488..d3abd00228 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -5033,6 +5033,9 @@ coutputvariable : cvariable indicator { } cinputvariable : cvariable indicator { + if ($2 != NULL && (find_variable($2))->type->typ == ECPGt_array) + mmerror(ET_ERROR, "arrays of indicators are not allowed on input"); + add_variable(&argsinsert, find_variable($1), ($2 == NULL) ? &no_indicator : find_variable($2)); }