Index: src/interfaces/ecpg/preproc/preproc.y
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/ecpg/preproc/preproc.y,v
retrieving revision 1.303.4.4
diff -c -c -r1.303.4.4 preproc.y
*** src/interfaces/ecpg/preproc/preproc.y	24 Aug 2005 10:35:12 -0000	1.303.4.4
--- src/interfaces/ecpg/preproc/preproc.y	14 Oct 2005 01:47:05 -0000
***************
*** 5142,5149 ****
  							*dim = '\0';
  					else	
  							sprintf(dim, "[%s]", dimension);
! 					/* 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)
--- 5142,5149 ----
  							*dim = '\0';
  					else	
  							sprintf(dim, "[%s]", dimension);
! 					/* cannot check for atoi <= 0 because a defined constant will yield 0 here as well */
! 					if (atoi(length) < 0 || strcmp(length, "0") == 0)
  						mmerror(PARSE_ERROR, ET_ERROR, "pointer to varchar are not implemented");
  
  					if (strcmp(dimension, "0") == 0)
