1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-05 02:22:28 +03:00

Fixed bug in parsing of typedef'ed array sizes.

Synced parser.
This commit is contained in:
Michael Meskes
2004-12-06 20:35:35 +00:00
parent b3f3092cad
commit ec7806db2c
4 changed files with 16 additions and 15 deletions

View File

@@ -560,7 +560,7 @@ adjust_array(enum ECPGttype type_enum, char **dimension, char **length, char *ty
* changed later on when the variable is defined
*/
*length = make_str("1");
else if (atoi(*dimension) == 0)
else if (strcmp(*dimension, "0") == 0)
*length = make_str("-1");
else
*length = *dimension;