
1. Remove the char2, char4, char8 and char16 types from postgresql 2. Change references of char16 to name in the regression tests. 3. Rename the char16.sql regression test to name.sql. 4. Modify the regression test scripts and outputs to match up. Might require new regression.{SYSTEM} files... Darren King
43 lines
905 B
SQL
43 lines
905 B
SQL
--
|
|
-- ARRAYS
|
|
--
|
|
SELECT * FROM arrtest;
|
|
|
|
SELECT arrtest.a[1],
|
|
arrtest.b[1][1][1],
|
|
arrtest.c[1],
|
|
arrtest.d[1][1],
|
|
arrtest.e[0]
|
|
FROM arrtest;
|
|
-- ??? what about
|
|
-- SELECT a[1], b[1][1][1], c[1], d[1][1], e[0]
|
|
-- FROM arrtest;
|
|
|
|
SELECT arrtest.a[1:3],
|
|
arrtest.b[1:1][1:2][1:2],
|
|
arrtest.c[1:2],
|
|
arrtest.d[1:1][1:2]
|
|
FROM arrtest;
|
|
|
|
-- returns three different results--
|
|
SELECT array_dims(arrtest.b) AS x;
|
|
|
|
-- returns nothing
|
|
SELECT *
|
|
FROM arrtest
|
|
WHERE arrtest.a[1] < 5 and
|
|
arrtest.c = '{"foobar"}'::_name;
|
|
|
|
-- updating array subranges seems to be broken
|
|
--
|
|
-- UPDATE arrtest
|
|
-- SET a[1:2] = '{16,25}',
|
|
-- b[1:1][1:1][1:2] = '{113, 117}',
|
|
-- c[1:1] = '{"new_word"}';
|
|
|
|
SELECT arrtest.a[1:3],
|
|
arrtest.b[1:1][1:2][1:2],
|
|
arrtest.c[1:2],
|
|
arrtest.d[1:1][1:2]
|
|
FROM arrtest;
|