|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.11 1997/07/24 20:15:45 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.12 1997/07/29 15:51:33 thomas Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
|
33 | 33 | #define ASSGN "="
|
34 | 34 |
|
35 | 35 | /* An array has the following internal structure:
|
36 |
| - * <nbytes> - total number of bytes |
37 |
| - * <ndim> - number of dimensions of the array |
38 |
| - * <flags> - bit mask of flags |
39 |
| - * <dim> - size of each array axis |
40 |
| - * <dim_lower> - lower boundary of each dimension |
41 |
| - * <actual data> - whatever is the stored data |
42 |
| -*/ |
| 36 | + * <nbytes> - total number of bytes |
| 37 | + * <ndim> - number of dimensions of the array |
| 38 | + * <flags> - bit mask of flags |
| 39 | + * <dim> - size of each array axis |
| 40 | + * <dim_lower> - lower boundary of each dimension |
| 41 | + * <actual data> - whatever is the stored data |
| 42 | + */ |
43 | 43 |
|
44 | 44 | /*-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-*/
|
45 | 45 | static int _ArrayCount(char *str, int dim[], int typdelim);
|
@@ -148,6 +148,14 @@ array_in(char *string, /* input array in external form */
|
148 | 148 | while (isspace(*p)) p++;
|
149 | 149 | }
|
150 | 150 |
|
| 151 | +#ifdef ARRAYDEBUG |
| 152 | +printf( "array_in- ndim %d (", ndim); |
| 153 | +for (i = 0; i < ndim; i++) { |
| 154 | + printf(" %d", dim[i]); |
| 155 | +}; |
| 156 | +printf( ") for %s\n", string); |
| 157 | +#endif |
| 158 | + |
151 | 159 | nitems = getNitems( ndim, dim);
|
152 | 160 | if (nitems == 0) {
|
153 | 161 | char *emptyArray = palloc(sizeof(ArrayType));
|
|
0 commit comments