~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

Viewing changes to src/backend/utils/adt/arrayfuncs.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-05-05 00:58:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505005806-c19tt7oyqb7kuw49
Tags: 8.4~beta1+cvs20090503-1
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4492
4492
        if (ARR_LBOUND(dims)[0] != 1)
4493
4493
                ereport(ERROR,
4494
4494
                            (errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
4495
 
                             errmsg("wrong range of array_subscripts"),
 
4495
                             errmsg("wrong range of array subscripts"),
4496
4496
                             errdetail("Lower bound of dimension array must be one.")));
4497
4497
 
4498
4498
        if (ARR_HASNULL(dims))
4524
4524
                if (ARR_LBOUND(lbs)[0] != 1)
4525
4525
                        ereport(ERROR,
4526
4526
                                (errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
4527
 
                                 errmsg("wrong range of array_subscripts"),
 
4527
                                 errmsg("wrong range of array subscripts"),
4528
4528
                                 errdetail("Lower bound of dimension array must be one.")));
4529
4529
 
4530
4530
                if (ARR_HASNULL(lbs))
4535
4535
                if (ARR_DIMS(lbs)[0] != ndims)
4536
4536
                        ereport(ERROR,
4537
4537
                                    (errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
4538
 
                                     errmsg("wrong number of array_subscripts"),
 
4538
                                     errmsg("wrong number of array subscripts"),
4539
4539
                                     errdetail("Low bound array has different size than dimensions array.")));
4540
4540
 
4541
4541
                lbsv = (int *) ARR_DATA_PTR(lbs);