OSDN Git Service

*** empty log message ***
authorMichael Meskes <meskes@postgresql.org>
Thu, 2 Mar 2000 19:33:59 +0000 (19:33 +0000)
committerMichael Meskes <meskes@postgresql.org>
Thu, 2 Mar 2000 19:33:59 +0000 (19:33 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/preproc/preproc.y

index e6009b4..846aa8a 100644 (file)
@@ -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.
index a65c822..d3abd00 100644 (file)
@@ -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)); 
 }