diff options
Diffstat (limited to 'contrib/cube/cube.c')
-rw-r--r-- | contrib/cube/cube.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index 62cd3a2d02..4a207ccb98 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -1,5 +1,5 @@ /****************************************************************************** - $PostgreSQL: pgsql/contrib/cube/cube.c,v 1.37 2009/06/11 14:48:50 momjian Exp $ + contrib/cube/cube.c This file contains routines that can be bound to a Postgres backend and called by the backend in the process of processing queries. The calling @@ -187,7 +187,7 @@ cube_a_f8_f8(PG_FUNCTION_ARGS) double *dur, *dll; - if (ARR_HASNULL(ur) || ARR_HASNULL(ll)) + if (array_contains_nulls(ur) || array_contains_nulls(ll)) ereport(ERROR, (errcode(ERRCODE_ARRAY_ELEMENT_ERROR), errmsg("cannot work with arrays containing NULLs"))); @@ -228,7 +228,7 @@ cube_a_f8(PG_FUNCTION_ARGS) int size; double *dur; - if (ARR_HASNULL(ur)) + if (array_contains_nulls(ur)) ereport(ERROR, (errcode(ERRCODE_ARRAY_ELEMENT_ERROR), errmsg("cannot work with arrays containing NULLs"))); @@ -262,7 +262,7 @@ cube_subset(PG_FUNCTION_ARGS) i; int *dx; - if (ARR_HASNULL(idx)) + if (array_contains_nulls(idx)) ereport(ERROR, (errcode(ERRCODE_ARRAY_ELEMENT_ERROR), errmsg("cannot work with arrays containing NULLs"))); @@ -615,7 +615,7 @@ g_cube_picksplit(PG_FUNCTION_ARGS) else { datum_r = union_dr; - size_r = size_alpha; + size_r = size_beta; *right++ = i; v->spl_nright++; } |