diff options
| author | Michael Meskes <meskes@postgresql.org> | 2005-08-24 10:34:19 +0000 |
|---|---|---|
| committer | Michael Meskes <meskes@postgresql.org> | 2005-08-24 10:34:19 +0000 |
| commit | f417ebf03a71c9ca1043850ad99d46675c60d2b0 (patch) | |
| tree | 5c6ad4d49c7a5272c1a3d44a06afc67ac9bc1d14 /src/interfaces/ecpg/preproc/preproc.y | |
| parent | 9012bb63fdf072b60c565fdcad9068bd603d8897 (diff) | |
| download | postgresql-f417ebf03a71c9ca1043850ad99d46675c60d2b0.tar.gz | |
- Check for NULL before checking whether argument is an array.
- Remove stary character from string quoting.
- Fixed check to report missing varchar pointer implementation.
Diffstat (limited to 'src/interfaces/ecpg/preproc/preproc.y')
| -rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index acd734ad06..7e55ea1d98 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.309 2005/08/22 20:25:03 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.310 2005/08/24 10:34:19 meskes Exp $ */ /* Copyright comment */ %{ @@ -5144,7 +5144,8 @@ variable: opt_pointer ECPGColLabel opt_array_bounds opt_initializer *dim = '\0'; else sprintf(dim, "[%s]", dimension); - if (strcmp(length, "0") == 0) + /* if (strcmp(length, "0") == 0)*/ + if (atoi(length) <= 0) mmerror(PARSE_ERROR, ET_ERROR, "pointer to varchar are not implemented"); if (strcmp(dimension, "0") == 0) |
