mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Remove useless whitespace at end of lines
This commit is contained in:
@ -6,7 +6,7 @@ CREATE TABLE arrtest (
|
||||
a int2[],
|
||||
b int4[][][],
|
||||
c name[],
|
||||
d text[][],
|
||||
d text[][],
|
||||
e float8[],
|
||||
f char(5)[],
|
||||
g varchar(5)[]
|
||||
@ -27,7 +27,7 @@ INSERT INTO arrtest (f)
|
||||
VALUES ('{"too long"}');
|
||||
|
||||
INSERT INTO arrtest (a, b[1:2][1:2], c, d, e, f, g)
|
||||
VALUES ('{11,12,23}', '{{3,4},{4,5}}', '{"foobar"}',
|
||||
VALUES ('{11,12,23}', '{{3,4},{4,5}}', '{"foobar"}',
|
||||
'{{"elt1", "elt2"}}', '{"3.4", "6.7"}',
|
||||
'{"abc","abcde"}', '{"abc","abcde"}');
|
||||
|
||||
@ -40,7 +40,7 @@ SELECT * FROM arrtest;
|
||||
SELECT arrtest.a[1],
|
||||
arrtest.b[1][1][1],
|
||||
arrtest.c[1],
|
||||
arrtest.d[1][1],
|
||||
arrtest.d[1][1],
|
||||
arrtest.e[0]
|
||||
FROM arrtest;
|
||||
|
||||
@ -49,7 +49,7 @@ SELECT a[1], b[1][1][1], c[1], d[1][1], e[0]
|
||||
|
||||
SELECT a[1:3],
|
||||
b[1:1][1:2][1:2],
|
||||
c[1:2],
|
||||
c[1:2],
|
||||
d[1:1][1:2]
|
||||
FROM arrtest;
|
||||
|
||||
@ -59,10 +59,10 @@ SELECT array_ndims(a) AS a,array_ndims(b) AS b,array_ndims(c) AS c
|
||||
SELECT array_dims(a) AS a,array_dims(b) AS b,array_dims(c) AS c
|
||||
FROM arrtest;
|
||||
|
||||
-- returns nothing
|
||||
-- returns nothing
|
||||
SELECT *
|
||||
FROM arrtest
|
||||
WHERE a[1] < 5 and
|
||||
WHERE a[1] < 5 and
|
||||
c = '{"foobar"}'::_name;
|
||||
|
||||
UPDATE arrtest
|
||||
@ -82,7 +82,7 @@ SELECT a,b,c FROM arrtest;
|
||||
|
||||
SELECT a[1:3],
|
||||
b[1:1][1:2][1:2],
|
||||
c[1:2],
|
||||
c[1:2],
|
||||
d[1:1][2:2]
|
||||
FROM arrtest;
|
||||
|
||||
@ -346,12 +346,12 @@ drop type _comptype;
|
||||
drop table comptable;
|
||||
drop type comptype;
|
||||
|
||||
create or replace function unnest1(anyarray)
|
||||
create or replace function unnest1(anyarray)
|
||||
returns setof anyelement as $$
|
||||
select $1[s] from generate_subscripts($1,1) g(s);
|
||||
$$ language sql immutable;
|
||||
|
||||
create or replace function unnest2(anyarray)
|
||||
create or replace function unnest2(anyarray)
|
||||
returns setof anyelement as $$
|
||||
select $1[s1][s2] from generate_subscripts($1,1) g1(s1),
|
||||
generate_subscripts($1,2) g2(s2);
|
||||
|
Reference in New Issue
Block a user