diff options
-rw-r--r-- | src/interfaces/ecpg/ChangeLog | 5 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index e6009b454ec..846aa8a158a 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 a65c822488c..d3abd002286 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)); } |