diff options
| author | Tom Lane | 2015-12-28 19:39:09 +0000 |
|---|---|---|
| committer | Tom Lane | 2015-12-28 19:39:12 +0000 |
| commit | 81ee726d87ec67c4f2846110c99f72e8a20dcd07 (patch) | |
| tree | 13257c74a5fdf4d2f550cf94b0e438cc3dad6ef8 /contrib/cube/expected/cube_1.out | |
| parent | ac443d1034d9888c543ae8147befc51cf4eb7839 (diff) | |
Code and docs review for cube kNN support.
Commit 33bd250f6c4cc309f4eeb657da80f1e7743b3e5c could have done with
some more review:
Adjust coding so that compilers unfamiliar with elog/ereport don't complain
about uninitialized values.
Fix misuse of PG_GETARG_INT16 to retrieve arguments declared as "integer"
at the SQL level. (This was evidently copied from cube_ll_coord and
cube_ur_coord, but those were wrong too.)
Fix non-style-guide-conforming error messages.
Fix underparenthesized if statements, which pgindent would have made a
hash of, and remove some unnecessary parens elsewhere.
Run pgindent over new code.
Revise documentation: repeated accretion of more operators without any
rethinking of the text already there had left things in a bit of a mess.
Merge all the cube operators into one table and adjust surrounding text
appropriately.
David Rowley and Tom Lane
Diffstat (limited to 'contrib/cube/expected/cube_1.out')
| -rw-r--r-- | contrib/cube/expected/cube_1.out | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/cube/expected/cube_1.out b/contrib/cube/expected/cube_1.out index 7178088e4ae..c40fabcd46e 100644 --- a/contrib/cube/expected/cube_1.out +++ b/contrib/cube/expected/cube_1.out @@ -1458,13 +1458,13 @@ SELECT cube(array[10,20,30], array[40,50,60])->6; (1 row) SELECT cube(array[10,20,30], array[40,50,60])->0; -ERROR: Cube index out of bounds +ERROR: cube index 0 is out of bounds SELECT cube(array[10,20,30], array[40,50,60])->7; -ERROR: Cube index out of bounds +ERROR: cube index 7 is out of bounds SELECT cube(array[10,20,30], array[40,50,60])->-1; -ERROR: Cube index out of bounds +ERROR: cube index -1 is out of bounds SELECT cube(array[10,20,30], array[40,50,60])->-6; -ERROR: Cube index out of bounds +ERROR: cube index -6 is out of bounds SELECT cube(array[10,20,30])->3; ?column? ---------- @@ -1478,7 +1478,7 @@ SELECT cube(array[10,20,30])->6; (1 row) SELECT cube(array[10,20,30])->-6; -ERROR: Cube index out of bounds +ERROR: cube index -6 is out of bounds -- "normalized" coordinate access SELECT cube(array[10,20,30], array[40,50,60])~>1; ?column? @@ -1517,7 +1517,7 @@ SELECT cube(array[40,50,60], array[10,20,30])~>3; (1 row) SELECT cube(array[40,50,60], array[10,20,30])~>0; -ERROR: Cube index out of bounds +ERROR: cube index 0 is out of bounds SELECT cube(array[40,50,60], array[10,20,30])~>4; ?column? ---------- @@ -1525,7 +1525,7 @@ SELECT cube(array[40,50,60], array[10,20,30])~>4; (1 row) SELECT cube(array[40,50,60], array[10,20,30])~>(-1); -ERROR: Cube index out of bounds +ERROR: cube index -1 is out of bounds -- Load some example data and build the index -- CREATE TABLE test_cube (c cube); |
