diff options
author | Michael Meskes <meskes@postgresql.org> | 2005-08-24 10:35:12 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2005-08-24 10:35:12 +0000 |
commit | 5576a611cd8f358a751f53ad787b4b659bbf77cc (patch) | |
tree | a782e2e9774c4d2ac4cf4970bdc4df03db84bac8 /src/interfaces/ecpg/preproc/preproc.y | |
parent | 9b4296abe0f0bcb07aab589a70cb01bb2dc8f437 (diff) |
- Check for NULL before checking whether argument is an array.
- Removed stray 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 c2b4d43ad5b..4b9b84e839f 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.303.4.3 2005/02/10 08:07:46 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.303.4.4 2005/08/24 10:35:12 meskes Exp $ */ /* Copyright comment */ %{ @@ -5142,7 +5142,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) |