@@ -87,15 +87,16 @@ CREATE TABLE IF NOT EXISTS test_types(
87
87
test_ltxtquery ltxtquery,
88
88
test_varchararray VARCHAR [],
89
89
test_textarray TEXT [],
90
- test_name NAME
90
+ test_name NAME,
91
+ test_inet INET
91
92
);
92
93
93
- /* test_bool test_date test_timestamp test_timestamptz test_int2 test_int4 test_int8 test_float4 test_float8 test_numeric test_bpchar test_char test_varchar test_uuid test_time test_interval test_json test_jsonb test_bytea test_enum test_f4array test_f8array test_narray test_boolarray test_i2array test_i4array test_i8array test_citext test_ltree test_lquery test_ltxtquery test_varchararray test_textarray test_name */
94
- INSERT INTO test_types VALUES ( TRUE, ' 1970-01-01' , ' 1970-01-01 00:00:01' , ' 1970-01-01 00:00:01-00' , - 32768 , 0 , - 9223372036854775808 , - 1 .1 , - 1 .1 , .01 , ' 👨🍳' , ' a' , ' abcdefghij' , ' a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11' , ' 08:12:40' , ' 1 year 2 months 3 days' , ' {"customer": "John Doe", "items": {"product": "Beer", "qty": 6}}' , ' {"customer": "John Doe", "items": {"product": "Beer", "qty": 6}}' , ' \0 10' , ' happy' , ' {-1.1, 0.00}' , ' {-1.1, 0.00}' , ' {0.01, 521.23}' , ' {true, false}' , ' {12}' , ' {-1}' , ' {-9223372036854775808, 9223372036854775807}' , ' str_citext' , ' A.B.C.D' , ' *.B.*' , ' A & B*' , ARRAY[' str1' ,' str2' ], ARRAY[' str1' ,' str2' ], ' 0' );
95
- INSERT INTO test_types VALUES ( true, ' 2000-02-28' , ' 2000-02-28 12:00:10' , ' 2000-02-28 12:00:10-04' , 0 , 1 , 0 , 0 .00 , 0 .0000 , 521 .34 , ' bb' , ' ಠ' , ' ' , ' a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11' , ' 18:30:00' , ' 2 weeks ago' , ' {"customer": "Lily Bush", "items": {"product": "Diaper", "qty": 24}}' , ' {"customer": "Lily Bush", "items": {"product": "Diaper", "qty": 24}}' , ' Здра́вствуйте' , ' very happy' , ' {}' , ' {}' , ' {0.12, 333.33, 22.22}' , ' {}' , ' {}' , ' {}' , ' {}' , ' ' , ' A.B.E' , ' A.*' , ' A | B' , ' {"0123456789","abcdefghijklmnopqrstuvwxyz","!@#$%^&*()_-+=~`:;<>?/"}' , ' {"0123456789","abcdefghijklmnopqrstuvwxyz","!@#$%^&*()_-+=~`:;<>?/"}' , ' 21' );
96
- INSERT INTO test_types VALUES ( false, ' 2038-01-18' , ' 2038-01-18 23:59:59' , ' 2038-01-18 23:59:59+08' , 1 , - 2147483648 , 9223372036854775807 , 2 .123456 , 2 .12345678901 , ' 1e-5' , ' ' , ' 😃' , ' 👨🍳👨🍳👨🍳👨' , ' A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11' , ' 23:00:10' , ' 3 months 2 days ago' , ' {"customer": "Josh William", "items": {"product": "Toy Car", "qty": 1}}' , ' {"customer": "Josh William", "items": {"product": "Toy Car", "qty": 1}}' , ' ' , ' ecstatic' , ' {1, -2, -12345.1}' , ' {2.12345678901, -12345678901.1}' , ' {}' , ' {true}' , ' {-32768, 32767}' , ' {-2147483648, 2147483647}' , ' {0}' , ' abcdef' , ' A' , ' *' , ' A@' , ARRAY[' ' ,' ' ], ARRAY[' ' ,' ' ], ' someName' );
97
- INSERT INTO test_types VALUES ( False, '1901-12-14', '1901-12-14 00:00:00.062547', '1901-12-14 00:00:00.062547-12', 32767, 2147483647, 1, -12345.1, -12345678901.1, -1.123e2, 'ddddd', '@', '@', '{a0eebc999c0b4ef8bb6d6bb9bd380a11}', '00:00:59.062547', '1 year 2 months 3 days', '{}', '{}', '😜', 'ecstatic', '{2.123456, NULL, 123.123}', '{2.123456, NULL, 123.123}', '{0.0, NULL, -112.1}', '{true, false, NULL}', '{-1, 0, 1, NULL}', '{-1, 0, 1123, NULL}', '{-1, 0, 1, NULL}', '1234', '', '*.A', 'A & B*', ARRAY['👨🍳👨🍳👨🍳👨','', NULL], ARRAY['👨🍳👨🍳👨🍳👨','', NULL], '101203203-1212323-22131235');
98
- INSERT INTO test_types VALUES ( NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL );
94
+ /* test_bool test_date test_timestamp test_timestamptz test_int2 test_int4 test_int8 test_float4 test_float8 test_numeric test_bpchar test_char test_varchar test_uuid test_time test_interval test_json test_jsonb test_bytea test_enum test_f4array test_f8array test_narray test_boolarray test_i2array test_i4array test_i8array test_citext test_ltree test_lquery test_ltxtquery test_varchararray test_textarray test_name test_inet */
95
+ INSERT INTO test_types VALUES ( TRUE, '1970-01-01', '1970-01-01 00:00:01', '1970-01-01 00:00:01-00', -32768, 0, -9223372036854775808, -1.1, -1.1, .01, '👨🍳', 'a', 'abcdefghij', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11', '08:12:40', '1 year 2 months 3 days', '{"customer": "John Doe", "items": {"product": "Beer", "qty": 6}}', '{"customer": "John Doe", "items": {"product": "Beer", "qty": 6}}', '\010', 'happy', '{-1.1, 0.00}', '{-1.1, 0.00}', '{0.01, 521.23}', '{true, false}', '{12}', '{-1}', '{-9223372036854775808, 9223372036854775807}', 'str_citext', 'A.B.C.D', '*.B.*', 'A & B*', ARRAY['str1','str2'], ARRAY['str1','str2'], '0', '192.168.1.1' );
96
+ INSERT INTO test_types VALUES ( true, '2000-02-28', '2000-02-28 12:00:10', '2000-02-28 12:00:10-04', 0, 1, 0, 0.00, 0.0000, 521.34, 'bb', 'ಠ', '', 'a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11', '18:30:00', '2 weeks ago', '{"customer": "Lily Bush", "items": {"product": "Diaper", "qty": 24}}', '{"customer": "Lily Bush", "items": {"product": "Diaper", "qty": 24}}', 'Здра́вствуйте', 'very happy', '{}', '{}', '{0.12, 333.33, 22.22}', '{}', '{}', '{}', '{}', '', 'A.B.E', 'A.*', 'A | B', '{"0123456789","abcdefghijklmnopqrstuvwxyz","!@#$%^&*()_-+=~`:;<>?/"}', '{"0123456789","abcdefghijklmnopqrstuvwxyz","!@#$%^&*()_-+=~`:;<>?/"}', '21', '10.0.0.0/24' );
97
+ INSERT INTO test_types VALUES ( false, '2038-01-18', '2038-01-18 23:59:59', '2038-01-18 23:59:59+08', 1, -2147483648, 9223372036854775807, 2.123456, 2.12345678901, '1e-5', '', '😃', '👨🍳👨🍳👨🍳👨', 'A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11', '23:00:10', '3 months 2 days ago', '{"customer": "Josh William", "items": {"product": "Toy Car", "qty": 1}}', '{"customer": "Josh William", "items": {"product": "Toy Car", "qty": 1}}', '', 'ecstatic', '{1, -2, -12345.1}', '{2.12345678901, -12345678901.1}', '{}', '{true}', '{-32768, 32767}', '{-2147483648, 2147483647}', '{0}', 'abcdef', 'A', '*', 'A@', ARRAY['',' '], ARRAY['',' '], 'someName', '2001:db8::1' );
98
+ INSERT INTO test_types VALUES ( False, '1901-12-14', '1901-12-14 00:00:00.062547', '1901-12-14 00:00:00.062547-12', 32767, 2147483647, 1, -12345.1, -12345678901.1, -1.123e2, 'ddddd', '@', '@', '{a0eebc999c0b4ef8bb6d6bb9bd380a11}', '00:00:59.062547', '1 year 2 months 3 days', '{}', '{}', '😜', 'ecstatic', '{2.123456, NULL, 123.123}', '{2.123456, NULL, 123.123}', '{0.0, NULL, -112.1}', '{true, false, NULL}', '{-1, 0, 1, NULL}', '{-1, 0, 1123, NULL}', '{-1, 0, 1, NULL}', '1234', '', '*.A', 'A & B*', ARRAY['👨🍳👨🍳👨🍳👨','', NULL], ARRAY['👨🍳👨🍳👨🍳👨','', NULL], '101203203-1212323-22131235', '2001:db8::/32' );
99
+ INSERT INTO test_types VALUES ( NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL );
99
100
100
101
101
102
CREATE OR REPLACE FUNCTION increment (i integer ) RETURNS integer AS $$
0 commit comments