mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Revert 9246af6799
because
I miss too much. Patch is returned to commitfest process.
This commit is contained in:
@ -2031,43 +2031,3 @@ SELECT width_bucket(5, ARRAY[3, 4, NULL]);
|
||||
ERROR: thresholds array must not contain NULLs
|
||||
SELECT width_bucket(5, ARRAY[ARRAY[1, 2], ARRAY[3, 4]]);
|
||||
ERROR: thresholds must be one-dimensional array
|
||||
-- slices with empty lower and/or upper index
|
||||
CREATE TABLE arrtest_s (
|
||||
a int2[],
|
||||
b int2[][]
|
||||
);
|
||||
INSERT INTO arrtest_s VALUES ('{1,2,3,4,5}', '{{1,2,3}, {4,5,6}, {7,8,9}}');
|
||||
SELECT a[:3], b[:2][:2] FROM arrtest_s;
|
||||
a | b
|
||||
---------+---------------
|
||||
{1,2,3} | {{1,2},{4,5}}
|
||||
(1 row)
|
||||
|
||||
SELECT a[2:], b[2:][2:] FROM arrtest_s;
|
||||
a | b
|
||||
-----------+---------------
|
||||
{2,3,4,5} | {{5,6},{8,9}}
|
||||
(1 row)
|
||||
|
||||
SELECT a[:], b[:] FROM arrtest_s;
|
||||
a | b
|
||||
-------------+---------------------------
|
||||
{1,2,3,4,5} | {{1,2,3},{4,5,6},{7,8,9}}
|
||||
(1 row)
|
||||
|
||||
-- errors
|
||||
UPDATE arrtest_s SET a[:3] = '{11, 12, 13}', b[:2][:2] = '{{11,12}, {14, 15}}';
|
||||
ERROR: array subscript must have both boundaries
|
||||
LINE 1: UPDATE arrtest_s SET a[:3] = '{11, 12, 13}', b[:2][:2] = '{{...
|
||||
^
|
||||
HINT: You can't omit the upper or lower boundaries when updating or inserting
|
||||
UPDATE arrtest_s SET a[3:] = '{23, 24, 25}', b[2:][2:] = '{{25,26}, {28, 29}}';
|
||||
ERROR: array subscript must have both boundaries
|
||||
LINE 1: UPDATE arrtest_s SET a[3:] = '{23, 24, 25}', b[2:][2:] = '{{...
|
||||
^
|
||||
HINT: You can't omit the upper or lower boundaries when updating or inserting
|
||||
UPDATE arrtest_s SET a[:] = '{23, 24, 25}';
|
||||
ERROR: array subscript must have both boundaries
|
||||
LINE 1: UPDATE arrtest_s SET a[:] = '{23, 24, 25}';
|
||||
^
|
||||
HINT: You can't omit the upper or lower boundaries when updating or inserting
|
||||
|
@ -586,7 +586,6 @@ SELECT user_relns() AS user_relns
|
||||
array_index_op_test
|
||||
array_op_test
|
||||
arrtest
|
||||
arrtest_s
|
||||
b
|
||||
b_star
|
||||
bb
|
||||
@ -711,7 +710,7 @@ SELECT user_relns() AS user_relns
|
||||
tvvmv
|
||||
varchar_tbl
|
||||
xacttest
|
||||
(133 rows)
|
||||
(132 rows)
|
||||
|
||||
SELECT name(equipment(hobby_construct(text 'skywalking', text 'mer')));
|
||||
name
|
||||
|
@ -609,18 +609,3 @@ SELECT width_bucket(5, '{}');
|
||||
SELECT width_bucket('5'::text, ARRAY[3, 4]::integer[]);
|
||||
SELECT width_bucket(5, ARRAY[3, 4, NULL]);
|
||||
SELECT width_bucket(5, ARRAY[ARRAY[1, 2], ARRAY[3, 4]]);
|
||||
|
||||
-- slices with empty lower and/or upper index
|
||||
CREATE TABLE arrtest_s (
|
||||
a int2[],
|
||||
b int2[][]
|
||||
);
|
||||
INSERT INTO arrtest_s VALUES ('{1,2,3,4,5}', '{{1,2,3}, {4,5,6}, {7,8,9}}');
|
||||
SELECT a[:3], b[:2][:2] FROM arrtest_s;
|
||||
SELECT a[2:], b[2:][2:] FROM arrtest_s;
|
||||
SELECT a[:], b[:] FROM arrtest_s;
|
||||
|
||||
-- errors
|
||||
UPDATE arrtest_s SET a[:3] = '{11, 12, 13}', b[:2][:2] = '{{11,12}, {14, 15}}';
|
||||
UPDATE arrtest_s SET a[3:] = '{23, 24, 25}', b[2:][2:] = '{{25,26}, {28, 29}}';
|
||||
UPDATE arrtest_s SET a[:] = '{23, 24, 25}';
|
Reference in New Issue
Block a user