mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
Add debugging statements.
This commit is contained in:
parent
6e34dc3ea0
commit
9d8ae79774
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.11 1997/07/24 20:15:45 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.12 1997/07/29 15:51:33 thomas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -33,13 +33,13 @@
|
|||||||
#define ASSGN "="
|
#define ASSGN "="
|
||||||
|
|
||||||
/* An array has the following internal structure:
|
/* An array has the following internal structure:
|
||||||
* <nbytes> - total number of bytes
|
* <nbytes> - total number of bytes
|
||||||
* <ndim> - number of dimensions of the array
|
* <ndim> - number of dimensions of the array
|
||||||
* <flags> - bit mask of flags
|
* <flags> - bit mask of flags
|
||||||
* <dim> - size of each array axis
|
* <dim> - size of each array axis
|
||||||
* <dim_lower> - lower boundary of each dimension
|
* <dim_lower> - lower boundary of each dimension
|
||||||
* <actual data> - whatever is the stored data
|
* <actual data> - whatever is the stored data
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-*/
|
/*-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-*/
|
||||||
static int _ArrayCount(char *str, int dim[], int typdelim);
|
static int _ArrayCount(char *str, int dim[], int typdelim);
|
||||||
@ -148,6 +148,14 @@ array_in(char *string, /* input array in external form */
|
|||||||
while (isspace(*p)) p++;
|
while (isspace(*p)) p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ARRAYDEBUG
|
||||||
|
printf( "array_in- ndim %d (", ndim);
|
||||||
|
for (i = 0; i < ndim; i++) {
|
||||||
|
printf(" %d", dim[i]);
|
||||||
|
};
|
||||||
|
printf( ") for %s\n", string);
|
||||||
|
#endif
|
||||||
|
|
||||||
nitems = getNitems( ndim, dim);
|
nitems = getNitems( ndim, dim);
|
||||||
if (nitems == 0) {
|
if (nitems == 0) {
|
||||||
char *emptyArray = palloc(sizeof(ArrayType));
|
char *emptyArray = palloc(sizeof(ArrayType));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user