set dolphin.b_compatibility_mode to off;
drop database if exists db_b_substr_test;
create database db_b_substr_test dbcompatibility 'A';
\c db_b_substr_test
DROP TABLE IF EXISTS template_string;
CREATE TABLE template_string(a TEXT, b BYTEA);
INSERT INTO template_string VALUES('abcdefghijklmnopqrstuvwxyz', 'abcdefghijklmnopqrstuvwxyz');
SELECT
SUBSTR(a, 1, 6) AS "normal",
SUBSTR(a, 0, 6) AS "from = 0",
SUBSTR(a, -1, 6) AS "from < 0",
SUBSTR(a, 1, 0) AS "for = 0",
SUBSTR(a, 1, -6) AS "for < 0"
FROM template_string;
SELECT SUBSTRING(a, 1, -6) AS "for < 0" FROM template_string;
SELECT
SUBSTRING(a, 1, 6) AS "normal",
SUBSTRING(a, 0, 6) AS "from = 0",
SUBSTRING(a, -1, 6) AS "from < 0",
SUBSTRING(a, 1, 0) AS "for = 0"
FROM template_string;
SELECT
SUBSTR(b, 1, 6) AS "normal",
SUBSTR(b, 0, 6) AS "from = 0",
SUBSTR(b, -1, 6) AS "from < 0",
SUBSTR(b, 1, 0) AS "for = 0",
SUBSTR(b, 1, -6) AS "for < 0"
FROM template_string;
SELECT SUBSTRING(b, 1, -6) AS "for < 0" FROM template_string;
SELECT
SUBSTRING(b, 1, 6) AS "normal",
SUBSTRING(b, 0, 6) AS "from = 0",
SUBSTRING(b, -1, 6) AS "from < 0",
SUBSTRING(b, 1, 0) AS "for = 0"
FROM template_string;
DROP TABLE IF EXISTS template_string;
\c contrib_regression
set dolphin.b_compatibility_mode to off;
drop database db_b_substr_test;
set dolphin.b_compatibility_mode to on;
create schema db_b_substr_test;
set current_schema to 'db_b_substr_test';
set bytea_output to escape;
DROP TABLE IF EXISTS template_string;
CREATE TABLE template_string(a TEXT, b BYTEA);
INSERT INTO template_string VALUES('abcdefghijklmnopqrstuvwxyz', 'abcdefghijklmnopqrstuvwxyz');
SELECT
SUBSTR(a, 1, 6) AS "normal",
SUBSTR('你是我的好兄弟', 1, 6) AS "Chinese",
SUBSTR(a, 0, 6) AS "from = 0",
SUBSTR(a, -1, 6) AS "from < 0",
SUBSTR(a, 1, 0) AS "for = 0",
SUBSTR(a, 1, -6) AS "for < 0"
FROM template_string;
SELECT SUBSTRING(a, 1, -6) AS "for < 0" FROM template_string;
SELECT
SUBSTRING(a, 1, 6) AS "normal",
SUBSTRING('你是我的好兄弟', 1, 6) AS "Chinese",
SUBSTRING(a, 0, 6) AS "from = 0",
SUBSTRING(a, -1, 6) AS "from < 0",
SUBSTRING(a, 1, 0) AS "for = 0"
FROM template_string;
SELECT
MID(a, 1, 6) AS "normal",
MID('你是我的好兄弟', 1, 6) AS "Chinese",
MID(a, 0, 6) AS "from = 0",
MID(a, -1, 6) AS "from < 0",
MID(a, 1, 0) AS "for = 0",
MID(a, 1, -6) AS "for < 0"
FROM template_string;
SELECT
SUBSTR(b, 1, 6) AS "normal",
SUBSTR(b, 0, 6) AS "from = 0",
SUBSTR(b, -1, 6) AS "from < 0",
SUBSTR(b, 1, 0) AS "for = 0",
SUBSTR(b, 1, -6) AS "for < 0"
FROM template_string;
SELECT SUBSTRING(b, 1, -6) AS "for < 0" FROM template_string;
SELECT
SUBSTRING(b, 1, 6) AS "normal",
SUBSTRING(b, 0, 6) AS "from = 0",
SUBSTRING(b, -1, 6) AS "from < 0",
SUBSTRING(b, 1, 0) AS "for = 0"
FROM template_string;
SELECT
MID(b, 1, 6) AS "normal",
MID(b, 0, 6) AS "from = 0",
MID(b, -1, 6) AS "from < 0",
MID(b, 1, 0) AS "for = 0",
MID(b, 1, -6) AS "for < 0"
FROM template_string;
SELECT SUBSTR(a FROM 1 FOR 6) FROM template_string;
SELECT SUBSTR(a FOR 6 FROM 1) FROM template_string;
SELECT SUBSTR(a FROM 1) FROM template_string;
SELECT SUBSTR(a FROM 0) FROM template_string;
SELECT SUBSTR(a FROM -1) FROM template_string;
SELECT SUBSTR(a FOR 1) FROM template_string;
SELECT SUBSTR(a FOR 0) FROM template_string;
SELECT SUBSTR(a FOR -1) FROM template_string;
SELECT SUBSTR(b FROM 1) FROM template_string;
SELECT SUBSTR(b FROM 0) FROM template_string;
SELECT SUBSTR(b FROM -1) FROM template_string;
SELECT SUBSTR(b FOR 1) FROM template_string;
SELECT SUBSTR(b FOR 0) FROM template_string;
SELECT SUBSTR(b FOR -1) FROM template_string;
SELECT SUBSTRING(a FROM 1) FROM template_string;
SELECT SUBSTRING(a FROM 0) FROM template_string;
SELECT SUBSTRING(a FROM -1) FROM template_string;
SELECT SUBSTRING(a FOR 1) FROM template_string;
SELECT SUBSTRING(a FOR 0) FROM template_string;
SELECT SUBSTRING(a FOR -1) FROM template_string;
SELECT SUBSTRING(b FROM 1) FROM template_string;
SELECT SUBSTRING(b FROM 0) FROM template_string;
SELECT SUBSTRING(b FROM -1) FROM template_string;
SELECT SUBSTRING(b FOR 1) FROM template_string;
SELECT SUBSTRING(b FOR 0) FROM template_string;
SELECT SUBSTRING(b FOR -1) FROM template_string;
SELECT MID(a FROM 1 FOR 6) FROM template_string;
SELECT MID(a FOR 6 FROM 1) FROM template_string;
SELECT MID(a FROM 1) FROM template_string;
SELECT MID(a FROM 0) FROM template_string;
SELECT MID(a FROM -1) FROM template_string;
SELECT MID(a FOR 1) FROM template_string;
SELECT MID(a FOR 0) FROM template_string;
SELECT MID(a FOR -1) FROM template_string;
SELECT MID(b FROM 1) FROM template_string;
SELECT MID(b FROM 0) FROM template_string;
SELECT MID(b FROM -1) FROM template_string;
SELECT MID(b FOR 1) FROM template_string;
SELECT MID(b FOR 0) FROM template_string;
SELECT MID(b FOR -1) FROM template_string;
select substring(E'\\xDEADBEEF'::bytea,2);
select substring(E'\\xDEADBEEF'::bytea,2,2);
select substring(E'\\xDEADBEEF'::bytea,2,8);
select substring(E'\\xDEADBEEF'::bytea,2,10);
select substring(E'\\xDEADBEEF'::bytea,2,0);
select substring(E'\\xDEADBEEF'::bytea,2,-1);
select substr(E'\\xDEADBEEF'::bytea,2);
select substr(E'\\xDEADBEEF'::bytea,2,2);
select substr(E'\\xDEADBEEF'::bytea,2,8);
select substr(E'\\xDEADBEEF'::bytea,2,10);
select substr(E'\\xDEADBEEF'::bytea,2,0);
select substr(E'\\xDEADBEEF'::bytea,2,-1);
select mid(E'\\xDEADBEEF'::bytea,2);
select mid(E'\\xDEADBEEF'::bytea,2,2);
select mid(E'\\xDEADBEEF'::bytea,2,8);
select mid(E'\\xDEADBEEF'::bytea,2,10);
select mid(E'\\xDEADBEEF'::bytea,2,0);
select mid(E'\\xDEADBEEF'::bytea,2,-1);
create table test_column (c1 text, c2 int) with (orientation = column);
create table test_row (c1 text, c2 int);
insert into test_column values('abcdefg', 2), ('abcdefg', 0), ('abcdefg', -2);
insert into test_row(c1, c2) select c1, c2 from test_column;
select c1, c2, substring(c1 from c2) from test_column order by c1;
select c1, c2, substring(c1 from c2) from test_row order by c1;
select c1, c2, substring(c1 for c2) from test_column order by c1;
select c1, c2, substring(c1 for c2) from test_row order by c1;
select c1, c2, substr(c1 from c2) from test_column order by c1;
select c1, c2, substr(c1 from c2) from test_row order by c1;
select c1, c2, substr(c1 for c2) from test_column order by c1;
select c1, c2, substr(c1 for c2) from test_row order by c1;
select substring(b'11' from b'10010');
select substring(b'10010' from b'11');
select substring('11'::bytea from b'10010');
select substring('10010'::bytea from b'11');
select substring('11'::text from b'10010');
select substring('10010'::text from b'11');
select substring(b'11', b'10010');
select substring(b'10010', b'11');
select substring('11'::bytea, b'10010');
select substring('10010'::bytea, b'11');
select substring('11'::text, b'10010');
select substring('10010'::text, b'11');
select substr('abcd', '2', '3');
drop table if exists t_substring_0033;
create table t_substring_0033 (c1 text ,c2 varchar(20),c3 text);
insert t_substring_0033 value('0/8',b'010','22cc');
select substring(c1,c2,c3) from t_substring_0033;
drop table t_substring_0033;
CREATE TABLE test_type_table (
`int1` tinyint,
`uint1` tinyint unsigned,
`int2` smallint,
`uint2` smallint unsigned,
`int4` integer,
`uint4` integer unsigned,
`int8` bigint,
`uint8` bigint unsigned,
`float4` float4,
`float8` float8,
`numeric` decimal(20, 6),
`char` char(10),
`varchar` varchar(100),
`text` text,
`null` text
);
insert into test_type_table
values(
1,
2,
3,
4,
5,
6,
7,
8,
9.12,
10.34,
11.123456,
'test char',
'test varchar字符串',
'test text文本',
NULL
);
select substr(`char`,`int1`), pg_typeof(substr(`char`,`int1`)) from test_type_table;
select substr(`char`,`uint1`), pg_typeof(substr(`char`,`uint1`)) from test_type_table;
select substr(`char`,`int2`), pg_typeof(substr(`char`,`int2`)) from test_type_table;
select substr(`char`,`uint2`), pg_typeof(substr(`char`,`uint2`)) from test_type_table;
select substr(`char`,`int4`), pg_typeof(substr(`char`,`int4`)) from test_type_table;
select substr(`char`,`uint4`), pg_typeof(substr(`char`,`uint4`)) from test_type_table;
select substr(`char`,`int8`), pg_typeof(substr(`char`,`int8`)) from test_type_table;
select substr(`char`,`uint8`), pg_typeof(substr(`char`,`uint8`)) from test_type_table;
select substr(`char`,`float4`), pg_typeof(substr(`char`,`float4`)) from test_type_table;
select substr(`char`,`float8`), pg_typeof(substr(`char`,`float8`)) from test_type_table;
select substr(`char`,`numeric`), pg_typeof(substr(`char`,`numeric`)) from test_type_table;
select substr(`char`,`null`), pg_typeof(substr(`char`,`null`)) from test_type_table;
select substr(`varchar`,`int1`), pg_typeof(substr(`varchar`,`int1`)) from test_type_table;
select substr(`varchar`,`uint1`), pg_typeof(substr(`varchar`,`uint1`)) from test_type_table;
select substr(`varchar`,`int2`), pg_typeof(substr(`varchar`,`int2`)) from test_type_table;
select substr(`varchar`,`uint2`), pg_typeof(substr(`varchar`,`uint2`)) from test_type_table;
select substr(`varchar`,`int4`), pg_typeof(substr(`varchar`,`int4`)) from test_type_table;
select substr(`varchar`,`uint4`), pg_typeof(substr(`varchar`,`uint4`)) from test_type_table;
select substr(`varchar`,`int8`), pg_typeof(substr(`varchar`,`int8`)) from test_type_table;
select substr(`varchar`,`uint8`), pg_typeof(substr(`varchar`,`uint8`)) from test_type_table;
select substr(`varchar`,`float4`), pg_typeof(substr(`varchar`,`float4`)) from test_type_table;
select substr(`varchar`,`float8`), pg_typeof(substr(`varchar`,`float8`)) from test_type_table;
select substr(`varchar`,`numeric`), pg_typeof(substr(`varchar`,`numeric`)) from test_type_table;
select substr(`varchar`,`null`), pg_typeof(substr(`varchar`,`null`)) from test_type_table;
select substr(`text`,`int1`), pg_typeof(substr(`text`,`int1`)) from test_type_table;
select substr(`text`,`uint1`), pg_typeof(substr(`text`,`uint1`)) from test_type_table;
select substr(`text`,`int2`), pg_typeof(substr(`text`,`int2`)) from test_type_table;
select substr(`text`,`uint2`), pg_typeof(substr(`text`,`uint2`)) from test_type_table;
select substr(`text`,`int4`), pg_typeof(substr(`text`,`int4`)) from test_type_table;
select substr(`text`,`uint4`), pg_typeof(substr(`text`,`uint4`)) from test_type_table;
select substr(`text`,`int8`), pg_typeof(substr(`text`,`int8`)) from test_type_table;
select substr(`text`,`uint8`), pg_typeof(substr(`text`,`uint8`)) from test_type_table;
select substr(`text`,`float4`), pg_typeof(substr(`text`,`float4`)) from test_type_table;
select substr(`text`,`float8`), pg_typeof(substr(`text`,`float8`)) from test_type_table;
select substr(`text`,`numeric`), pg_typeof(substr(`text`,`numeric`)) from test_type_table;
select substr(`text`,`null`), pg_typeof(substr(`text`,`null`)) from test_type_table;
select substr(`null`,`int1`), pg_typeof(substr(`null`,`int1`)) from test_type_table;
select substr(`null`,`uint1`), pg_typeof(substr(`null`,`uint1`)) from test_type_table;
select substr(`null`,`int2`), pg_typeof(substr(`null`,`int2`)) from test_type_table;
select substr(`null`,`uint2`), pg_typeof(substr(`null`,`uint2`)) from test_type_table;
select substr(`null`,`int4`), pg_typeof(substr(`null`,`int4`)) from test_type_table;
select substr(`null`,`uint4`), pg_typeof(substr(`null`,`uint4`)) from test_type_table;
select substr(`null`,`int8`), pg_typeof(substr(`null`,`int8`)) from test_type_table;
select substr(`null`,`uint8`), pg_typeof(substr(`null`,`uint8`)) from test_type_table;
select substr(`null`,`float4`), pg_typeof(substr(`null`,`float4`)) from test_type_table;
select substr(`null`,`float8`), pg_typeof(substr(`null`,`float8`)) from test_type_table;
select substr(`null`,`numeric`), pg_typeof(substr(`null`,`numeric`)) from test_type_table;
select substr(`null`,`null`), pg_typeof(substr(`null`,`null`)) from test_type_table;
select substring(`char`,`int1`), pg_typeof(substring(`char`,`int1`)) from test_type_table;
select substring(`char`,`uint1`), pg_typeof(substring(`char`,`uint1`)) from test_type_table;
select substring(`char`,`int2`), pg_typeof(substring(`char`,`int2`)) from test_type_table;
select substring(`char`,`uint2`), pg_typeof(substring(`char`,`uint2`)) from test_type_table;
select substring(`char`,`int4`), pg_typeof(substring(`char`,`int4`)) from test_type_table;
select substring(`char`,`uint4`), pg_typeof(substring(`char`,`uint4`)) from test_type_table;
select substring(`char`,`int8`), pg_typeof(substring(`char`,`int8`)) from test_type_table;
select substring(`char`,`uint8`), pg_typeof(substring(`char`,`uint8`)) from test_type_table;
select substring(`char`,`float4`), pg_typeof(substring(`char`,`float4`)) from test_type_table;
select substring(`char`,`float8`), pg_typeof(substring(`char`,`float8`)) from test_type_table;
select substring(`char`,`numeric`), pg_typeof(substring(`char`,`numeric`)) from test_type_table;
select substring(`char`,`null`), pg_typeof(substring(`char`,`null`)) from test_type_table;
select substring(`varchar`,`int1`), pg_typeof(substring(`varchar`,`int1`)) from test_type_table;
select substring(`varchar`,`uint1`), pg_typeof(substring(`varchar`,`uint1`)) from test_type_table;
select substring(`varchar`,`int2`), pg_typeof(substring(`varchar`,`int2`)) from test_type_table;
select substring(`varchar`,`uint2`), pg_typeof(substring(`varchar`,`uint2`)) from test_type_table;
select substring(`varchar`,`int4`), pg_typeof(substring(`varchar`,`int4`)) from test_type_table;
select substring(`varchar`,`uint4`), pg_typeof(substring(`varchar`,`uint4`)) from test_type_table;
select substring(`varchar`,`int8`), pg_typeof(substring(`varchar`,`int8`)) from test_type_table;
select substring(`varchar`,`uint8`), pg_typeof(substring(`varchar`,`uint8`)) from test_type_table;
select substring(`varchar`,`float4`), pg_typeof(substring(`varchar`,`float4`)) from test_type_table;
select substring(`varchar`,`float8`), pg_typeof(substring(`varchar`,`float8`)) from test_type_table;
select substring(`varchar`,`numeric`), pg_typeof(substring(`varchar`,`numeric`)) from test_type_table;
select substring(`varchar`,`null`), pg_typeof(substring(`varchar`,`null`)) from test_type_table;
select substring(`text`,`int1`), pg_typeof(substring(`text`,`int1`)) from test_type_table;
select substring(`text`,`uint1`), pg_typeof(substring(`text`,`uint1`)) from test_type_table;
select substring(`text`,`int2`), pg_typeof(substring(`text`,`int2`)) from test_type_table;
select substring(`text`,`uint2`), pg_typeof(substring(`text`,`uint2`)) from test_type_table;
select substring(`text`,`int4`), pg_typeof(substring(`text`,`int4`)) from test_type_table;
select substring(`text`,`uint4`), pg_typeof(substring(`text`,`uint4`)) from test_type_table;
select substring(`text`,`int8`), pg_typeof(substring(`text`,`int8`)) from test_type_table;
select substring(`text`,`uint8`), pg_typeof(substring(`text`,`uint8`)) from test_type_table;
select substring(`text`,`float4`), pg_typeof(substring(`text`,`float4`)) from test_type_table;
select substring(`text`,`float8`), pg_typeof(substring(`text`,`float8`)) from test_type_table;
select substring(`text`,`numeric`), pg_typeof(substring(`text`,`numeric`)) from test_type_table;
select substring(`text`,`null`), pg_typeof(substring(`text`,`null`)) from test_type_table;
select substring(`null`,`int1`), pg_typeof(substring(`null`,`int1`)) from test_type_table;
select substring(`null`,`uint1`), pg_typeof(substring(`null`,`uint1`)) from test_type_table;
select substring(`null`,`int2`), pg_typeof(substring(`null`,`int2`)) from test_type_table;
select substring(`null`,`uint2`), pg_typeof(substring(`null`,`uint2`)) from test_type_table;
select substring(`null`,`int4`), pg_typeof(substring(`null`,`int4`)) from test_type_table;
select substring(`null`,`uint4`), pg_typeof(substring(`null`,`uint4`)) from test_type_table;
select substring(`null`,`int8`), pg_typeof(substring(`null`,`int8`)) from test_type_table;
select substring(`null`,`uint8`), pg_typeof(substring(`null`,`uint8`)) from test_type_table;
select substring(`null`,`float4`), pg_typeof(substring(`null`,`float4`)) from test_type_table;
select substring(`null`,`float8`), pg_typeof(substring(`null`,`float8`)) from test_type_table;
select substring(`null`,`numeric`), pg_typeof(substring(`null`,`numeric`)) from test_type_table;
select substring(`null`,`null`), pg_typeof(substring(`null`,`null`)) from test_type_table;
select substr(`char` FROM `int1`), pg_typeof(substr(`char` FROM `int1`)) from test_type_table;
select substr(`char` FROM `uint1`), pg_typeof(substr(`char` FROM `uint1`)) from test_type_table;
select substr(`char` FROM `int2`), pg_typeof(substr(`char` FROM `int2`)) from test_type_table;
select substr(`char` FROM `uint2`), pg_typeof(substr(`char` FROM `uint2`)) from test_type_table;
select substr(`char` FROM `int4`), pg_typeof(substr(`char` FROM `int4`)) from test_type_table;
select substr(`char` FROM `uint4`), pg_typeof(substr(`char` FROM `uint4`)) from test_type_table;
select substr(`char` FROM `int8`), pg_typeof(substr(`char` FROM `int8`)) from test_type_table;
select substr(`char` FROM `uint8`), pg_typeof(substr(`char` FROM `uint8`)) from test_type_table;
select substr(`char` FROM `float4`), pg_typeof(substr(`char` FROM `float4`)) from test_type_table;
select substr(`char` FROM `float8`), pg_typeof(substr(`char` FROM `float8`)) from test_type_table;
select substr(`char` FROM `numeric`), pg_typeof(substr(`char` FROM `numeric`)) from test_type_table;
select substr(`char` FROM `null`), pg_typeof(substr(`char` FROM `null`)) from test_type_table;
select substr(`varchar` FROM `int1`), pg_typeof(substr(`varchar` FROM `int1`)) from test_type_table;
select substr(`varchar` FROM `uint1`), pg_typeof(substr(`varchar` FROM `uint1`)) from test_type_table;
select substr(`varchar` FROM `int2`), pg_typeof(substr(`varchar` FROM `int2`)) from test_type_table;
select substr(`varchar` FROM `uint2`), pg_typeof(substr(`varchar` FROM `uint2`)) from test_type_table;
select substr(`varchar` FROM `int4`), pg_typeof(substr(`varchar` FROM `int4`)) from test_type_table;
select substr(`varchar` FROM `uint4`), pg_typeof(substr(`varchar` FROM `uint4`)) from test_type_table;
select substr(`varchar` FROM `int8`), pg_typeof(substr(`varchar` FROM `int8`)) from test_type_table;
select substr(`varchar` FROM `uint8`), pg_typeof(substr(`varchar` FROM `uint8`)) from test_type_table;
select substr(`varchar` FROM `float4`), pg_typeof(substr(`varchar` FROM `float4`)) from test_type_table;
select substr(`varchar` FROM `float8`), pg_typeof(substr(`varchar` FROM `float8`)) from test_type_table;
select substr(`varchar` FROM `numeric`), pg_typeof(substr(`varchar` FROM `numeric`)) from test_type_table;
select substr(`varchar` FROM `null`), pg_typeof(substr(`varchar` FROM `null`)) from test_type_table;
select substr(`text` FROM `int1`), pg_typeof(substr(`text` FROM `int1`)) from test_type_table;
select substr(`text` FROM `uint1`), pg_typeof(substr(`text` FROM `uint1`)) from test_type_table;
select substr(`text` FROM `int2`), pg_typeof(substr(`text` FROM `int2`)) from test_type_table;
select substr(`text` FROM `uint2`), pg_typeof(substr(`text` FROM `uint2`)) from test_type_table;
select substr(`text` FROM `int4`), pg_typeof(substr(`text` FROM `int4`)) from test_type_table;
select substr(`text` FROM `uint4`), pg_typeof(substr(`text` FROM `uint4`)) from test_type_table;
select substr(`text` FROM `int8`), pg_typeof(substr(`text` FROM `int8`)) from test_type_table;
select substr(`text` FROM `uint8`), pg_typeof(substr(`text` FROM `uint8`)) from test_type_table;
select substr(`text` FROM `float4`), pg_typeof(substr(`text` FROM `float4`)) from test_type_table;
select substr(`text` FROM `float8`), pg_typeof(substr(`text` FROM `float8`)) from test_type_table;
select substr(`text` FROM `numeric`), pg_typeof(substr(`text` FROM `numeric`)) from test_type_table;
select substr(`text` FROM `null`), pg_typeof(substr(`text` FROM `null`)) from test_type_table;
select substr(`null` FROM `int1`), pg_typeof(substr(`null` FROM `int1`)) from test_type_table;
select substr(`null` FROM `uint1`), pg_typeof(substr(`null` FROM `uint1`)) from test_type_table;
select substr(`null` FROM `int2`), pg_typeof(substr(`null` FROM `int2`)) from test_type_table;
select substr(`null` FROM `uint2`), pg_typeof(substr(`null` FROM `uint2`)) from test_type_table;
select substr(`null` FROM `int4`), pg_typeof(substr(`null` FROM `int4`)) from test_type_table;
select substr(`null` FROM `uint4`), pg_typeof(substr(`null` FROM `uint4`)) from test_type_table;
select substr(`null` FROM `int8`), pg_typeof(substr(`null` FROM `int8`)) from test_type_table;
select substr(`null` FROM `uint8`), pg_typeof(substr(`null` FROM `uint8`)) from test_type_table;
select substr(`null` FROM `float4`), pg_typeof(substr(`null` FROM `float4`)) from test_type_table;
select substr(`null` FROM `float8`), pg_typeof(substr(`null` FROM `float8`)) from test_type_table;
select substr(`null` FROM `numeric`), pg_typeof(substr(`null` FROM `numeric`)) from test_type_table;
select substr(`null` FROM `null`), pg_typeof(substr(`null` FROM `null`)) from test_type_table;
select substring(`char` FROM `int1`), pg_typeof(substring(`char` FROM `int1`)) from test_type_table;
select substring(`char` FROM `uint1`), pg_typeof(substring(`char` FROM `uint1`)) from test_type_table;
select substring(`char` FROM `int2`), pg_typeof(substring(`char` FROM `int2`)) from test_type_table;
select substring(`char` FROM `uint2`), pg_typeof(substring(`char` FROM `uint2`)) from test_type_table;
select substring(`char` FROM `int4`), pg_typeof(substring(`char` FROM `int4`)) from test_type_table;
select substring(`char` FROM `uint4`), pg_typeof(substring(`char` FROM `uint4`)) from test_type_table;
select substring(`char` FROM `int8`), pg_typeof(substring(`char` FROM `int8`)) from test_type_table;
select substring(`char` FROM `uint8`), pg_typeof(substring(`char` FROM `uint8`)) from test_type_table;
select substring(`char` FROM `float4`), pg_typeof(substring(`char` FROM `float4`)) from test_type_table;
select substring(`char` FROM `float8`), pg_typeof(substring(`char` FROM `float8`)) from test_type_table;
select substring(`char` FROM `numeric`), pg_typeof(substring(`char` FROM `numeric`)) from test_type_table;
select substring(`char` FROM `null`), pg_typeof(substring(`char` FROM `null`)) from test_type_table;
select substring(`varchar` FROM `int1`), pg_typeof(substring(`varchar` FROM `int1`)) from test_type_table;
select substring(`varchar` FROM `uint1`), pg_typeof(substring(`varchar` FROM `uint1`)) from test_type_table;
select substring(`varchar` FROM `int2`), pg_typeof(substring(`varchar` FROM `int2`)) from test_type_table;
select substring(`varchar` FROM `uint2`), pg_typeof(substring(`varchar` FROM `uint2`)) from test_type_table;
select substring(`varchar` FROM `int4`), pg_typeof(substring(`varchar` FROM `int4`)) from test_type_table;
select substring(`varchar` FROM `uint4`), pg_typeof(substring(`varchar` FROM `uint4`)) from test_type_table;
select substring(`varchar` FROM `int8`), pg_typeof(substring(`varchar` FROM `int8`)) from test_type_table;
select substring(`varchar` FROM `uint8`), pg_typeof(substring(`varchar` FROM `uint8`)) from test_type_table;
select substring(`varchar` FROM `float4`), pg_typeof(substring(`varchar` FROM `float4`)) from test_type_table;
select substring(`varchar` FROM `float8`), pg_typeof(substring(`varchar` FROM `float8`)) from test_type_table;
select substring(`varchar` FROM `numeric`), pg_typeof(substring(`varchar` FROM `numeric`)) from test_type_table;
select substring(`varchar` FROM `null`), pg_typeof(substring(`varchar` FROM `null`)) from test_type_table;
select substring(`text` FROM `int1`), pg_typeof(substring(`text` FROM `int1`)) from test_type_table;
select substring(`text` FROM `uint1`), pg_typeof(substring(`text` FROM `uint1`)) from test_type_table;
select substring(`text` FROM `int2`), pg_typeof(substring(`text` FROM `int2`)) from test_type_table;
select substring(`text` FROM `uint2`), pg_typeof(substring(`text` FROM `uint2`)) from test_type_table;
select substring(`text` FROM `int4`), pg_typeof(substring(`text` FROM `int4`)) from test_type_table;
select substring(`text` FROM `uint4`), pg_typeof(substring(`text` FROM `uint4`)) from test_type_table;
select substring(`text` FROM `int8`), pg_typeof(substring(`text` FROM `int8`)) from test_type_table;
select substring(`text` FROM `uint8`), pg_typeof(substring(`text` FROM `uint8`)) from test_type_table;
select substring(`text` FROM `float4`), pg_typeof(substring(`text` FROM `float4`)) from test_type_table;
select substring(`text` FROM `float8`), pg_typeof(substring(`text` FROM `float8`)) from test_type_table;
select substring(`text` FROM `numeric`), pg_typeof(substring(`text` FROM `numeric`)) from test_type_table;
select substring(`text` FROM `null`), pg_typeof(substring(`text` FROM `null`)) from test_type_table;
select substring(`null` FROM `int1`), pg_typeof(substring(`null` FROM `int1`)) from test_type_table;
select substring(`null` FROM `uint1`), pg_typeof(substring(`null` FROM `uint1`)) from test_type_table;
select substring(`null` FROM `int2`), pg_typeof(substring(`null` FROM `int2`)) from test_type_table;
select substring(`null` FROM `uint2`), pg_typeof(substring(`null` FROM `uint2`)) from test_type_table;
select substring(`null` FROM `int4`), pg_typeof(substring(`null` FROM `int4`)) from test_type_table;
select substring(`null` FROM `uint4`), pg_typeof(substring(`null` FROM `uint4`)) from test_type_table;
select substring(`null` FROM `int8`), pg_typeof(substring(`null` FROM `int8`)) from test_type_table;
select substring(`null` FROM `uint8`), pg_typeof(substring(`null` FROM `uint8`)) from test_type_table;
select substring(`null` FROM `float4`), pg_typeof(substring(`null` FROM `float4`)) from test_type_table;
select substring(`null` FROM `float8`), pg_typeof(substring(`null` FROM `float8`)) from test_type_table;
select substring(`null` FROM `numeric`), pg_typeof(substring(`null` FROM `numeric`)) from test_type_table;
select substring(`null` FROM `null`), pg_typeof(substring(`null` FROM `null`)) from test_type_table;
select substr(`char`,`int1`,`int1`), pg_typeof(substr(`char`,`int1`,`int1`)) from test_type_table;
select substr(`char`,`int1`,`uint1`), pg_typeof(substr(`char`,`int1`,`uint1`)) from test_type_table;
select substr(`char`,`int1`,`int2`), pg_typeof(substr(`char`,`int1`,`int2`)) from test_type_table;
select substr(`char`,`int1`,`uint2`), pg_typeof(substr(`char`,`int1`,`uint2`)) from test_type_table;
select substr(`char`,`int1`,`int4`), pg_typeof(substr(`char`,`int1`,`int4`)) from test_type_table;
select substr(`char`,`int1`,`uint4`), pg_typeof(substr(`char`,`int1`,`uint4`)) from test_type_table;
select substr(`char`,`int1`,`int8`), pg_typeof(substr(`char`,`int1`,`int8`)) from test_type_table;
select substr(`char`,`int1`,`uint8`), pg_typeof(substr(`char`,`int1`,`uint8`)) from test_type_table;
select substr(`char`,`int1`,`float4`), pg_typeof(substr(`char`,`int1`,`float4`)) from test_type_table;
select substr(`char`,`int1`,`float8`), pg_typeof(substr(`char`,`int1`,`float8`)) from test_type_table;
select substr(`char`,`int1`,`numeric`), pg_typeof(substr(`char`,`int1`,`numeric`)) from test_type_table;
select substr(`char`,`int1`,`null`), pg_typeof(substr(`char`,`int1`,`null`)) from test_type_table;
select substr(`char`,`uint1`,`int1`), pg_typeof(substr(`char`,`uint1`,`int1`)) from test_type_table;
select substr(`char`,`uint1`,`uint1`), pg_typeof(substr(`char`,`uint1`,`uint1`)) from test_type_table;
select substr(`char`,`uint1`,`int2`), pg_typeof(substr(`char`,`uint1`,`int2`)) from test_type_table;
select substr(`char`,`uint1`,`uint2`), pg_typeof(substr(`char`,`uint1`,`uint2`)) from test_type_table;
select substr(`char`,`uint1`,`int4`), pg_typeof(substr(`char`,`uint1`,`int4`)) from test_type_table;
select substr(`char`,`uint1`,`uint4`), pg_typeof(substr(`char`,`uint1`,`uint4`)) from test_type_table;
select substr(`char`,`uint1`,`int8`), pg_typeof(substr(`char`,`uint1`,`int8`)) from test_type_table;
select substr(`char`,`uint1`,`uint8`), pg_typeof(substr(`char`,`uint1`,`uint8`)) from test_type_table;
select substr(`char`,`uint1`,`float4`), pg_typeof(substr(`char`,`uint1`,`float4`)) from test_type_table;
select substr(`char`,`uint1`,`float8`), pg_typeof(substr(`char`,`uint1`,`float8`)) from test_type_table;
select substr(`char`,`uint1`,`numeric`), pg_typeof(substr(`char`,`uint1`,`numeric`)) from test_type_table;
select substr(`char`,`uint1`,`null`), pg_typeof(substr(`char`,`uint1`,`null`)) from test_type_table;
select substr(`char`,`int2`,`int1`), pg_typeof(substr(`char`,`int2`,`int1`)) from test_type_table;
select substr(`char`,`int2`,`uint1`), pg_typeof(substr(`char`,`int2`,`uint1`)) from test_type_table;
select substr(`char`,`int2`,`int2`), pg_typeof(substr(`char`,`int2`,`int2`)) from test_type_table;
select substr(`char`,`int2`,`uint2`), pg_typeof(substr(`char`,`int2`,`uint2`)) from test_type_table;
select substr(`char`,`int2`,`int4`), pg_typeof(substr(`char`,`int2`,`int4`)) from test_type_table;
select substr(`char`,`int2`,`uint4`), pg_typeof(substr(`char`,`int2`,`uint4`)) from test_type_table;
select substr(`char`,`int2`,`int8`), pg_typeof(substr(`char`,`int2`,`int8`)) from test_type_table;
select substr(`char`,`int2`,`uint8`), pg_typeof(substr(`char`,`int2`,`uint8`)) from test_type_table;
select substr(`char`,`int2`,`float4`), pg_typeof(substr(`char`,`int2`,`float4`)) from test_type_table;
select substr(`char`,`int2`,`float8`), pg_typeof(substr(`char`,`int2`,`float8`)) from test_type_table;
select substr(`char`,`int2`,`numeric`), pg_typeof(substr(`char`,`int2`,`numeric`)) from test_type_table;
select substr(`char`,`int2`,`null`), pg_typeof(substr(`char`,`int2`,`null`)) from test_type_table;
select substr(`char`,`uint2`,`int1`), pg_typeof(substr(`char`,`uint2`,`int1`)) from test_type_table;
select substr(`char`,`uint2`,`uint1`), pg_typeof(substr(`char`,`uint2`,`uint1`)) from test_type_table;
select substr(`char`,`uint2`,`int2`), pg_typeof(substr(`char`,`uint2`,`int2`)) from test_type_table;
select substr(`char`,`uint2`,`uint2`), pg_typeof(substr(`char`,`uint2`,`uint2`)) from test_type_table;
select substr(`char`,`uint2`,`int4`), pg_typeof(substr(`char`,`uint2`,`int4`)) from test_type_table;
select substr(`char`,`uint2`,`uint4`), pg_typeof(substr(`char`,`uint2`,`uint4`)) from test_type_table;
select substr(`char`,`uint2`,`int8`), pg_typeof(substr(`char`,`uint2`,`int8`)) from test_type_table;
select substr(`char`,`uint2`,`uint8`), pg_typeof(substr(`char`,`uint2`,`uint8`)) from test_type_table;
select substr(`char`,`uint2`,`float4`), pg_typeof(substr(`char`,`uint2`,`float4`)) from test_type_table;
select substr(`char`,`uint2`,`float8`), pg_typeof(substr(`char`,`uint2`,`float8`)) from test_type_table;
select substr(`char`,`uint2`,`numeric`), pg_typeof(substr(`char`,`uint2`,`numeric`)) from test_type_table;
select substr(`char`,`uint2`,`null`), pg_typeof(substr(`char`,`uint2`,`null`)) from test_type_table;
select substr(`char`,`int4`,`int1`), pg_typeof(substr(`char`,`int4`,`int1`)) from test_type_table;
select substr(`char`,`int4`,`uint1`), pg_typeof(substr(`char`,`int4`,`uint1`)) from test_type_table;
select substr(`char`,`int4`,`int2`), pg_typeof(substr(`char`,`int4`,`int2`)) from test_type_table;
select substr(`char`,`int4`,`uint2`), pg_typeof(substr(`char`,`int4`,`uint2`)) from test_type_table;
select substr(`char`,`int4`,`int4`), pg_typeof(substr(`char`,`int4`,`int4`)) from test_type_table;
select substr(`char`,`int4`,`uint4`), pg_typeof(substr(`char`,`int4`,`uint4`)) from test_type_table;
select substr(`char`,`int4`,`int8`), pg_typeof(substr(`char`,`int4`,`int8`)) from test_type_table;
select substr(`char`,`int4`,`uint8`), pg_typeof(substr(`char`,`int4`,`uint8`)) from test_type_table;
select substr(`char`,`int4`,`float4`), pg_typeof(substr(`char`,`int4`,`float4`)) from test_type_table;
select substr(`char`,`int4`,`float8`), pg_typeof(substr(`char`,`int4`,`float8`)) from test_type_table;
select substr(`char`,`int4`,`numeric`), pg_typeof(substr(`char`,`int4`,`numeric`)) from test_type_table;
select substr(`char`,`int4`,`null`), pg_typeof(substr(`char`,`int4`,`null`)) from test_type_table;
select substr(`char`,`uint4`,`int1`), pg_typeof(substr(`char`,`uint4`,`int1`)) from test_type_table;
select substr(`char`,`uint4`,`uint1`), pg_typeof(substr(`char`,`uint4`,`uint1`)) from test_type_table;
select substr(`char`,`uint4`,`int2`), pg_typeof(substr(`char`,`uint4`,`int2`)) from test_type_table;
select substr(`char`,`uint4`,`uint2`), pg_typeof(substr(`char`,`uint4`,`uint2`)) from test_type_table;
select substr(`char`,`uint4`,`int4`), pg_typeof(substr(`char`,`uint4`,`int4`)) from test_type_table;
select substr(`char`,`uint4`,`uint4`), pg_typeof(substr(`char`,`uint4`,`uint4`)) from test_type_table;
select substr(`char`,`uint4`,`int8`), pg_typeof(substr(`char`,`uint4`,`int8`)) from test_type_table;
select substr(`char`,`uint4`,`uint8`), pg_typeof(substr(`char`,`uint4`,`uint8`)) from test_type_table;
select substr(`char`,`uint4`,`float4`), pg_typeof(substr(`char`,`uint4`,`float4`)) from test_type_table;
select substr(`char`,`uint4`,`float8`), pg_typeof(substr(`char`,`uint4`,`float8`)) from test_type_table;
select substr(`char`,`uint4`,`numeric`), pg_typeof(substr(`char`,`uint4`,`numeric`)) from test_type_table;
select substr(`char`,`uint4`,`null`), pg_typeof(substr(`char`,`uint4`,`null`)) from test_type_table;
select substr(`char`,`int8`,`int1`), pg_typeof(substr(`char`,`int8`,`int1`)) from test_type_table;
select substr(`char`,`int8`,`uint1`), pg_typeof(substr(`char`,`int8`,`uint1`)) from test_type_table;
select substr(`char`,`int8`,`int2`), pg_typeof(substr(`char`,`int8`,`int2`)) from test_type_table;
select substr(`char`,`int8`,`uint2`), pg_typeof(substr(`char`,`int8`,`uint2`)) from test_type_table;
select substr(`char`,`int8`,`int4`), pg_typeof(substr(`char`,`int8`,`int4`)) from test_type_table;
select substr(`char`,`int8`,`uint4`), pg_typeof(substr(`char`,`int8`,`uint4`)) from test_type_table;
select substr(`char`,`int8`,`int8`), pg_typeof(substr(`char`,`int8`,`int8`)) from test_type_table;
select substr(`char`,`int8`,`uint8`), pg_typeof(substr(`char`,`int8`,`uint8`)) from test_type_table;
select substr(`char`,`int8`,`float4`), pg_typeof(substr(`char`,`int8`,`float4`)) from test_type_table;
select substr(`char`,`int8`,`float8`), pg_typeof(substr(`char`,`int8`,`float8`)) from test_type_table;
select substr(`char`,`int8`,`numeric`), pg_typeof(substr(`char`,`int8`,`numeric`)) from test_type_table;
select substr(`char`,`int8`,`null`), pg_typeof(substr(`char`,`int8`,`null`)) from test_type_table;
select substr(`char`,`uint8`,`int1`), pg_typeof(substr(`char`,`uint8`,`int1`)) from test_type_table;
select substr(`char`,`uint8`,`uint1`), pg_typeof(substr(`char`,`uint8`,`uint1`)) from test_type_table;
select substr(`char`,`uint8`,`int2`), pg_typeof(substr(`char`,`uint8`,`int2`)) from test_type_table;
select substr(`char`,`uint8`,`uint2`), pg_typeof(substr(`char`,`uint8`,`uint2`)) from test_type_table;
select substr(`char`,`uint8`,`int4`), pg_typeof(substr(`char`,`uint8`,`int4`)) from test_type_table;
select substr(`char`,`uint8`,`uint4`), pg_typeof(substr(`char`,`uint8`,`uint4`)) from test_type_table;
select substr(`char`,`uint8`,`int8`), pg_typeof(substr(`char`,`uint8`,`int8`)) from test_type_table;
select substr(`char`,`uint8`,`uint8`), pg_typeof(substr(`char`,`uint8`,`uint8`)) from test_type_table;
select substr(`char`,`uint8`,`float4`), pg_typeof(substr(`char`,`uint8`,`float4`)) from test_type_table;
select substr(`char`,`uint8`,`float8`), pg_typeof(substr(`char`,`uint8`,`float8`)) from test_type_table;
select substr(`char`,`uint8`,`numeric`), pg_typeof(substr(`char`,`uint8`,`numeric`)) from test_type_table;
select substr(`char`,`uint8`,`null`), pg_typeof(substr(`char`,`uint8`,`null`)) from test_type_table;
select substr(`char`,`float4`,`int1`), pg_typeof(substr(`char`,`float4`,`int1`)) from test_type_table;
select substr(`char`,`float4`,`uint1`), pg_typeof(substr(`char`,`float4`,`uint1`)) from test_type_table;
select substr(`char`,`float4`,`int2`), pg_typeof(substr(`char`,`float4`,`int2`)) from test_type_table;
select substr(`char`,`float4`,`uint2`), pg_typeof(substr(`char`,`float4`,`uint2`)) from test_type_table;
select substr(`char`,`float4`,`int4`), pg_typeof(substr(`char`,`float4`,`int4`)) from test_type_table;
select substr(`char`,`float4`,`uint4`), pg_typeof(substr(`char`,`float4`,`uint4`)) from test_type_table;
select substr(`char`,`float4`,`int8`), pg_typeof(substr(`char`,`float4`,`int8`)) from test_type_table;
select substr(`char`,`float4`,`uint8`), pg_typeof(substr(`char`,`float4`,`uint8`)) from test_type_table;
select substr(`char`,`float4`,`float4`), pg_typeof(substr(`char`,`float4`,`float4`)) from test_type_table;
select substr(`char`,`float4`,`float8`), pg_typeof(substr(`char`,`float4`,`float8`)) from test_type_table;
select substr(`char`,`float4`,`numeric`), pg_typeof(substr(`char`,`float4`,`numeric`)) from test_type_table;
select substr(`char`,`float4`,`null`), pg_typeof(substr(`char`,`float4`,`null`)) from test_type_table;
select substr(`char`,`float8`,`int1`), pg_typeof(substr(`char`,`float8`,`int1`)) from test_type_table;
select substr(`char`,`float8`,`uint1`), pg_typeof(substr(`char`,`float8`,`uint1`)) from test_type_table;
select substr(`char`,`float8`,`int2`), pg_typeof(substr(`char`,`float8`,`int2`)) from test_type_table;
select substr(`char`,`float8`,`uint2`), pg_typeof(substr(`char`,`float8`,`uint2`)) from test_type_table;
select substr(`char`,`float8`,`int4`), pg_typeof(substr(`char`,`float8`,`int4`)) from test_type_table;
select substr(`char`,`float8`,`uint4`), pg_typeof(substr(`char`,`float8`,`uint4`)) from test_type_table;
select substr(`char`,`float8`,`int8`), pg_typeof(substr(`char`,`float8`,`int8`)) from test_type_table;
select substr(`char`,`float8`,`uint8`), pg_typeof(substr(`char`,`float8`,`uint8`)) from test_type_table;
select substr(`char`,`float8`,`float4`), pg_typeof(substr(`char`,`float8`,`float4`)) from test_type_table;
select substr(`char`,`float8`,`float8`), pg_typeof(substr(`char`,`float8`,`float8`)) from test_type_table;
select substr(`char`,`float8`,`numeric`), pg_typeof(substr(`char`,`float8`,`numeric`)) from test_type_table;
select substr(`char`,`float8`,`null`), pg_typeof(substr(`char`,`float8`,`null`)) from test_type_table;
select substr(`char`,`numeric`,`int1`), pg_typeof(substr(`char`,`numeric`,`int1`)) from test_type_table;
select substr(`char`,`numeric`,`uint1`), pg_typeof(substr(`char`,`numeric`,`uint1`)) from test_type_table;
select substr(`char`,`numeric`,`int2`), pg_typeof(substr(`char`,`numeric`,`int2`)) from test_type_table;
select substr(`char`,`numeric`,`uint2`), pg_typeof(substr(`char`,`numeric`,`uint2`)) from test_type_table;
select substr(`char`,`numeric`,`int4`), pg_typeof(substr(`char`,`numeric`,`int4`)) from test_type_table;
select substr(`char`,`numeric`,`uint4`), pg_typeof(substr(`char`,`numeric`,`uint4`)) from test_type_table;
select substr(`char`,`numeric`,`int8`), pg_typeof(substr(`char`,`numeric`,`int8`)) from test_type_table;
select substr(`char`,`numeric`,`uint8`), pg_typeof(substr(`char`,`numeric`,`uint8`)) from test_type_table;
select substr(`char`,`numeric`,`float4`), pg_typeof(substr(`char`,`numeric`,`float4`)) from test_type_table;
select substr(`char`,`numeric`,`float8`), pg_typeof(substr(`char`,`numeric`,`float8`)) from test_type_table;
select substr(`char`,`numeric`,`numeric`), pg_typeof(substr(`char`,`numeric`,`numeric`)) from test_type_table;
select substr(`char`,`numeric`,`null`), pg_typeof(substr(`char`,`numeric`,`null`)) from test_type_table;
select substr(`char`,`null`,`int1`), pg_typeof(substr(`char`,`null`,`int1`)) from test_type_table;
select substr(`char`,`null`,`uint1`), pg_typeof(substr(`char`,`null`,`uint1`)) from test_type_table;
select substr(`char`,`null`,`int2`), pg_typeof(substr(`char`,`null`,`int2`)) from test_type_table;
select substr(`char`,`null`,`uint2`), pg_typeof(substr(`char`,`null`,`uint2`)) from test_type_table;
select substr(`char`,`null`,`int4`), pg_typeof(substr(`char`,`null`,`int4`)) from test_type_table;
select substr(`char`,`null`,`uint4`), pg_typeof(substr(`char`,`null`,`uint4`)) from test_type_table;
select substr(`char`,`null`,`int8`), pg_typeof(substr(`char`,`null`,`int8`)) from test_type_table;
select substr(`char`,`null`,`uint8`), pg_typeof(substr(`char`,`null`,`uint8`)) from test_type_table;
select substr(`char`,`null`,`float4`), pg_typeof(substr(`char`,`null`,`float4`)) from test_type_table;
select substr(`char`,`null`,`float8`), pg_typeof(substr(`char`,`null`,`float8`)) from test_type_table;
select substr(`char`,`null`,`numeric`), pg_typeof(substr(`char`,`null`,`numeric`)) from test_type_table;
select substr(`char`,`null`,`null`), pg_typeof(substr(`char`,`null`,`null`)) from test_type_table;
select substr(`varchar`,`int1`,`int1`), pg_typeof(substr(`varchar`,`int1`,`int1`)) from test_type_table;
select substr(`varchar`,`int1`,`uint1`), pg_typeof(substr(`varchar`,`int1`,`uint1`)) from test_type_table;
select substr(`varchar`,`int1`,`int2`), pg_typeof(substr(`varchar`,`int1`,`int2`)) from test_type_table;
select substr(`varchar`,`int1`,`uint2`), pg_typeof(substr(`varchar`,`int1`,`uint2`)) from test_type_table;
select substr(`varchar`,`int1`,`int4`), pg_typeof(substr(`varchar`,`int1`,`int4`)) from test_type_table;
select substr(`varchar`,`int1`,`uint4`), pg_typeof(substr(`varchar`,`int1`,`uint4`)) from test_type_table;
select substr(`varchar`,`int1`,`int8`), pg_typeof(substr(`varchar`,`int1`,`int8`)) from test_type_table;
select substr(`varchar`,`int1`,`uint8`), pg_typeof(substr(`varchar`,`int1`,`uint8`)) from test_type_table;
select substr(`varchar`,`int1`,`float4`), pg_typeof(substr(`varchar`,`int1`,`float4`)) from test_type_table;
select substr(`varchar`,`int1`,`float8`), pg_typeof(substr(`varchar`,`int1`,`float8`)) from test_type_table;
select substr(`varchar`,`int1`,`numeric`), pg_typeof(substr(`varchar`,`int1`,`numeric`)) from test_type_table;
select substr(`varchar`,`int1`,`null`), pg_typeof(substr(`varchar`,`int1`,`null`)) from test_type_table;
select substr(`varchar`,`uint1`,`int1`), pg_typeof(substr(`varchar`,`uint1`,`int1`)) from test_type_table;
select substr(`varchar`,`uint1`,`uint1`), pg_typeof(substr(`varchar`,`uint1`,`uint1`)) from test_type_table;
select substr(`varchar`,`uint1`,`int2`), pg_typeof(substr(`varchar`,`uint1`,`int2`)) from test_type_table;
select substr(`varchar`,`uint1`,`uint2`), pg_typeof(substr(`varchar`,`uint1`,`uint2`)) from test_type_table;
select substr(`varchar`,`uint1`,`int4`), pg_typeof(substr(`varchar`,`uint1`,`int4`)) from test_type_table;
select substr(`varchar`,`uint1`,`uint4`), pg_typeof(substr(`varchar`,`uint1`,`uint4`)) from test_type_table;
select substr(`varchar`,`uint1`,`int8`), pg_typeof(substr(`varchar`,`uint1`,`int8`)) from test_type_table;
select substr(`varchar`,`uint1`,`uint8`), pg_typeof(substr(`varchar`,`uint1`,`uint8`)) from test_type_table;
select substr(`varchar`,`uint1`,`float4`), pg_typeof(substr(`varchar`,`uint1`,`float4`)) from test_type_table;
select substr(`varchar`,`uint1`,`float8`), pg_typeof(substr(`varchar`,`uint1`,`float8`)) from test_type_table;
select substr(`varchar`,`uint1`,`numeric`), pg_typeof(substr(`varchar`,`uint1`,`numeric`)) from test_type_table;
select substr(`varchar`,`uint1`,`null`), pg_typeof(substr(`varchar`,`uint1`,`null`)) from test_type_table;
select substr(`varchar`,`int2`,`int1`), pg_typeof(substr(`varchar`,`int2`,`int1`)) from test_type_table;
select substr(`varchar`,`int2`,`uint1`), pg_typeof(substr(`varchar`,`int2`,`uint1`)) from test_type_table;
select substr(`varchar`,`int2`,`int2`), pg_typeof(substr(`varchar`,`int2`,`int2`)) from test_type_table;
select substr(`varchar`,`int2`,`uint2`), pg_typeof(substr(`varchar`,`int2`,`uint2`)) from test_type_table;
select substr(`varchar`,`int2`,`int4`), pg_typeof(substr(`varchar`,`int2`,`int4`)) from test_type_table;
select substr(`varchar`,`int2`,`uint4`), pg_typeof(substr(`varchar`,`int2`,`uint4`)) from test_type_table;
select substr(`varchar`,`int2`,`int8`), pg_typeof(substr(`varchar`,`int2`,`int8`)) from test_type_table;
select substr(`varchar`,`int2`,`uint8`), pg_typeof(substr(`varchar`,`int2`,`uint8`)) from test_type_table;
select substr(`varchar`,`int2`,`float4`), pg_typeof(substr(`varchar`,`int2`,`float4`)) from test_type_table;
select substr(`varchar`,`int2`,`float8`), pg_typeof(substr(`varchar`,`int2`,`float8`)) from test_type_table;
select substr(`varchar`,`int2`,`numeric`), pg_typeof(substr(`varchar`,`int2`,`numeric`)) from test_type_table;
select substr(`varchar`,`int2`,`null`), pg_typeof(substr(`varchar`,`int2`,`null`)) from test_type_table;
select substr(`varchar`,`uint2`,`int1`), pg_typeof(substr(`varchar`,`uint2`,`int1`)) from test_type_table;
select substr(`varchar`,`uint2`,`uint1`), pg_typeof(substr(`varchar`,`uint2`,`uint1`)) from test_type_table;
select substr(`varchar`,`uint2`,`int2`), pg_typeof(substr(`varchar`,`uint2`,`int2`)) from test_type_table;
select substr(`varchar`,`uint2`,`uint2`), pg_typeof(substr(`varchar`,`uint2`,`uint2`)) from test_type_table;
select substr(`varchar`,`uint2`,`int4`), pg_typeof(substr(`varchar`,`uint2`,`int4`)) from test_type_table;
select substr(`varchar`,`uint2`,`uint4`), pg_typeof(substr(`varchar`,`uint2`,`uint4`)) from test_type_table;
select substr(`varchar`,`uint2`,`int8`), pg_typeof(substr(`varchar`,`uint2`,`int8`)) from test_type_table;
select substr(`varchar`,`uint2`,`uint8`), pg_typeof(substr(`varchar`,`uint2`,`uint8`)) from test_type_table;
select substr(`varchar`,`uint2`,`float4`), pg_typeof(substr(`varchar`,`uint2`,`float4`)) from test_type_table;
select substr(`varchar`,`uint2`,`float8`), pg_typeof(substr(`varchar`,`uint2`,`float8`)) from test_type_table;
select substr(`varchar`,`uint2`,`numeric`), pg_typeof(substr(`varchar`,`uint2`,`numeric`)) from test_type_table;
select substr(`varchar`,`uint2`,`null`), pg_typeof(substr(`varchar`,`uint2`,`null`)) from test_type_table;
select substr(`varchar`,`int4`,`int1`), pg_typeof(substr(`varchar`,`int4`,`int1`)) from test_type_table;
select substr(`varchar`,`int4`,`uint1`), pg_typeof(substr(`varchar`,`int4`,`uint1`)) from test_type_table;
select substr(`varchar`,`int4`,`int2`), pg_typeof(substr(`varchar`,`int4`,`int2`)) from test_type_table;
select substr(`varchar`,`int4`,`uint2`), pg_typeof(substr(`varchar`,`int4`,`uint2`)) from test_type_table;
select substr(`varchar`,`int4`,`int4`), pg_typeof(substr(`varchar`,`int4`,`int4`)) from test_type_table;
select substr(`varchar`,`int4`,`uint4`), pg_typeof(substr(`varchar`,`int4`,`uint4`)) from test_type_table;
select substr(`varchar`,`int4`,`int8`), pg_typeof(substr(`varchar`,`int4`,`int8`)) from test_type_table;
select substr(`varchar`,`int4`,`uint8`), pg_typeof(substr(`varchar`,`int4`,`uint8`)) from test_type_table;
select substr(`varchar`,`int4`,`float4`), pg_typeof(substr(`varchar`,`int4`,`float4`)) from test_type_table;
select substr(`varchar`,`int4`,`float8`), pg_typeof(substr(`varchar`,`int4`,`float8`)) from test_type_table;
select substr(`varchar`,`int4`,`numeric`), pg_typeof(substr(`varchar`,`int4`,`numeric`)) from test_type_table;
select substr(`varchar`,`int4`,`null`), pg_typeof(substr(`varchar`,`int4`,`null`)) from test_type_table;
select substr(`varchar`,`uint4`,`int1`), pg_typeof(substr(`varchar`,`uint4`,`int1`)) from test_type_table;
select substr(`varchar`,`uint4`,`uint1`), pg_typeof(substr(`varchar`,`uint4`,`uint1`)) from test_type_table;
select substr(`varchar`,`uint4`,`int2`), pg_typeof(substr(`varchar`,`uint4`,`int2`)) from test_type_table;
select substr(`varchar`,`uint4`,`uint2`), pg_typeof(substr(`varchar`,`uint4`,`uint2`)) from test_type_table;
select substr(`varchar`,`uint4`,`int4`), pg_typeof(substr(`varchar`,`uint4`,`int4`)) from test_type_table;
select substr(`varchar`,`uint4`,`uint4`), pg_typeof(substr(`varchar`,`uint4`,`uint4`)) from test_type_table;
select substr(`varchar`,`uint4`,`int8`), pg_typeof(substr(`varchar`,`uint4`,`int8`)) from test_type_table;
select substr(`varchar`,`uint4`,`uint8`), pg_typeof(substr(`varchar`,`uint4`,`uint8`)) from test_type_table;
select substr(`varchar`,`uint4`,`float4`), pg_typeof(substr(`varchar`,`uint4`,`float4`)) from test_type_table;
select substr(`varchar`,`uint4`,`float8`), pg_typeof(substr(`varchar`,`uint4`,`float8`)) from test_type_table;
select substr(`varchar`,`uint4`,`numeric`), pg_typeof(substr(`varchar`,`uint4`,`numeric`)) from test_type_table;
select substr(`varchar`,`uint4`,`null`), pg_typeof(substr(`varchar`,`uint4`,`null`)) from test_type_table;
select substr(`varchar`,`int8`,`int1`), pg_typeof(substr(`varchar`,`int8`,`int1`)) from test_type_table;
select substr(`varchar`,`int8`,`uint1`), pg_typeof(substr(`varchar`,`int8`,`uint1`)) from test_type_table;
select substr(`varchar`,`int8`,`int2`), pg_typeof(substr(`varchar`,`int8`,`int2`)) from test_type_table;
select substr(`varchar`,`int8`,`uint2`), pg_typeof(substr(`varchar`,`int8`,`uint2`)) from test_type_table;
select substr(`varchar`,`int8`,`int4`), pg_typeof(substr(`varchar`,`int8`,`int4`)) from test_type_table;
select substr(`varchar`,`int8`,`uint4`), pg_typeof(substr(`varchar`,`int8`,`uint4`)) from test_type_table;
select substr(`varchar`,`int8`,`int8`), pg_typeof(substr(`varchar`,`int8`,`int8`)) from test_type_table;
select substr(`varchar`,`int8`,`uint8`), pg_typeof(substr(`varchar`,`int8`,`uint8`)) from test_type_table;
select substr(`varchar`,`int8`,`float4`), pg_typeof(substr(`varchar`,`int8`,`float4`)) from test_type_table;
select substr(`varchar`,`int8`,`float8`), pg_typeof(substr(`varchar`,`int8`,`float8`)) from test_type_table;
select substr(`varchar`,`int8`,`numeric`), pg_typeof(substr(`varchar`,`int8`,`numeric`)) from test_type_table;
select substr(`varchar`,`int8`,`null`), pg_typeof(substr(`varchar`,`int8`,`null`)) from test_type_table;
select substr(`varchar`,`uint8`,`int1`), pg_typeof(substr(`varchar`,`uint8`,`int1`)) from test_type_table;
select substr(`varchar`,`uint8`,`uint1`), pg_typeof(substr(`varchar`,`uint8`,`uint1`)) from test_type_table;
select substr(`varchar`,`uint8`,`int2`), pg_typeof(substr(`varchar`,`uint8`,`int2`)) from test_type_table;
select substr(`varchar`,`uint8`,`uint2`), pg_typeof(substr(`varchar`,`uint8`,`uint2`)) from test_type_table;
select substr(`varchar`,`uint8`,`int4`), pg_typeof(substr(`varchar`,`uint8`,`int4`)) from test_type_table;
select substr(`varchar`,`uint8`,`uint4`), pg_typeof(substr(`varchar`,`uint8`,`uint4`)) from test_type_table;
select substr(`varchar`,`uint8`,`int8`), pg_typeof(substr(`varchar`,`uint8`,`int8`)) from test_type_table;
select substr(`varchar`,`uint8`,`uint8`), pg_typeof(substr(`varchar`,`uint8`,`uint8`)) from test_type_table;
select substr(`varchar`,`uint8`,`float4`), pg_typeof(substr(`varchar`,`uint8`,`float4`)) from test_type_table;
select substr(`varchar`,`uint8`,`float8`), pg_typeof(substr(`varchar`,`uint8`,`float8`)) from test_type_table;
select substr(`varchar`,`uint8`,`numeric`), pg_typeof(substr(`varchar`,`uint8`,`numeric`)) from test_type_table;
select substr(`varchar`,`uint8`,`null`), pg_typeof(substr(`varchar`,`uint8`,`null`)) from test_type_table;
select substr(`varchar`,`float4`,`int1`), pg_typeof(substr(`varchar`,`float4`,`int1`)) from test_type_table;
select substr(`varchar`,`float4`,`uint1`), pg_typeof(substr(`varchar`,`float4`,`uint1`)) from test_type_table;
select substr(`varchar`,`float4`,`int2`), pg_typeof(substr(`varchar`,`float4`,`int2`)) from test_type_table;
select substr(`varchar`,`float4`,`uint2`), pg_typeof(substr(`varchar`,`float4`,`uint2`)) from test_type_table;
select substr(`varchar`,`float4`,`int4`), pg_typeof(substr(`varchar`,`float4`,`int4`)) from test_type_table;
select substr(`varchar`,`float4`,`uint4`), pg_typeof(substr(`varchar`,`float4`,`uint4`)) from test_type_table;
select substr(`varchar`,`float4`,`int8`), pg_typeof(substr(`varchar`,`float4`,`int8`)) from test_type_table;
select substr(`varchar`,`float4`,`uint8`), pg_typeof(substr(`varchar`,`float4`,`uint8`)) from test_type_table;
select substr(`varchar`,`float4`,`float4`), pg_typeof(substr(`varchar`,`float4`,`float4`)) from test_type_table;
select substr(`varchar`,`float4`,`float8`), pg_typeof(substr(`varchar`,`float4`,`float8`)) from test_type_table;
select substr(`varchar`,`float4`,`numeric`), pg_typeof(substr(`varchar`,`float4`,`numeric`)) from test_type_table;
select substr(`varchar`,`float4`,`null`), pg_typeof(substr(`varchar`,`float4`,`null`)) from test_type_table;
select substr(`varchar`,`float8`,`int1`), pg_typeof(substr(`varchar`,`float8`,`int1`)) from test_type_table;
select substr(`varchar`,`float8`,`uint1`), pg_typeof(substr(`varchar`,`float8`,`uint1`)) from test_type_table;
select substr(`varchar`,`float8`,`int2`), pg_typeof(substr(`varchar`,`float8`,`int2`)) from test_type_table;
select substr(`varchar`,`float8`,`uint2`), pg_typeof(substr(`varchar`,`float8`,`uint2`)) from test_type_table;
select substr(`varchar`,`float8`,`int4`), pg_typeof(substr(`varchar`,`float8`,`int4`)) from test_type_table;
select substr(`varchar`,`float8`,`uint4`), pg_typeof(substr(`varchar`,`float8`,`uint4`)) from test_type_table;
select substr(`varchar`,`float8`,`int8`), pg_typeof(substr(`varchar`,`float8`,`int8`)) from test_type_table;
select substr(`varchar`,`float8`,`uint8`), pg_typeof(substr(`varchar`,`float8`,`uint8`)) from test_type_table;
select substr(`varchar`,`float8`,`float4`), pg_typeof(substr(`varchar`,`float8`,`float4`)) from test_type_table;
select substr(`varchar`,`float8`,`float8`), pg_typeof(substr(`varchar`,`float8`,`float8`)) from test_type_table;
select substr(`varchar`,`float8`,`numeric`), pg_typeof(substr(`varchar`,`float8`,`numeric`)) from test_type_table;
select substr(`varchar`,`float8`,`null`), pg_typeof(substr(`varchar`,`float8`,`null`)) from test_type_table;
select substr(`varchar`,`numeric`,`int1`), pg_typeof(substr(`varchar`,`numeric`,`int1`)) from test_type_table;
select substr(`varchar`,`numeric`,`uint1`), pg_typeof(substr(`varchar`,`numeric`,`uint1`)) from test_type_table;
select substr(`varchar`,`numeric`,`int2`), pg_typeof(substr(`varchar`,`numeric`,`int2`)) from test_type_table;
select substr(`varchar`,`numeric`,`uint2`), pg_typeof(substr(`varchar`,`numeric`,`uint2`)) from test_type_table;
select substr(`varchar`,`numeric`,`int4`), pg_typeof(substr(`varchar`,`numeric`,`int4`)) from test_type_table;
select substr(`varchar`,`numeric`,`uint4`), pg_typeof(substr(`varchar`,`numeric`,`uint4`)) from test_type_table;
select substr(`varchar`,`numeric`,`int8`), pg_typeof(substr(`varchar`,`numeric`,`int8`)) from test_type_table;
select substr(`varchar`,`numeric`,`uint8`), pg_typeof(substr(`varchar`,`numeric`,`uint8`)) from test_type_table;
select substr(`varchar`,`numeric`,`float4`), pg_typeof(substr(`varchar`,`numeric`,`float4`)) from test_type_table;
select substr(`varchar`,`numeric`,`float8`), pg_typeof(substr(`varchar`,`numeric`,`float8`)) from test_type_table;
select substr(`varchar`,`numeric`,`numeric`), pg_typeof(substr(`varchar`,`numeric`,`numeric`)) from test_type_table;
select substr(`varchar`,`numeric`,`null`), pg_typeof(substr(`varchar`,`numeric`,`null`)) from test_type_table;
select substr(`varchar`,`null`,`int1`), pg_typeof(substr(`varchar`,`null`,`int1`)) from test_type_table;
select substr(`varchar`,`null`,`uint1`), pg_typeof(substr(`varchar`,`null`,`uint1`)) from test_type_table;
select substr(`varchar`,`null`,`int2`), pg_typeof(substr(`varchar`,`null`,`int2`)) from test_type_table;
select substr(`varchar`,`null`,`uint2`), pg_typeof(substr(`varchar`,`null`,`uint2`)) from test_type_table;
select substr(`varchar`,`null`,`int4`), pg_typeof(substr(`varchar`,`null`,`int4`)) from test_type_table;
select substr(`varchar`,`null`,`uint4`), pg_typeof(substr(`varchar`,`null`,`uint4`)) from test_type_table;
select substr(`varchar`,`null`,`int8`), pg_typeof(substr(`varchar`,`null`,`int8`)) from test_type_table;
select substr(`varchar`,`null`,`uint8`), pg_typeof(substr(`varchar`,`null`,`uint8`)) from test_type_table;
select substr(`varchar`,`null`,`float4`), pg_typeof(substr(`varchar`,`null`,`float4`)) from test_type_table;
select substr(`varchar`,`null`,`float8`), pg_typeof(substr(`varchar`,`null`,`float8`)) from test_type_table;
select substr(`varchar`,`null`,`numeric`), pg_typeof(substr(`varchar`,`null`,`numeric`)) from test_type_table;
select substr(`varchar`,`null`,`null`), pg_typeof(substr(`varchar`,`null`,`null`)) from test_type_table;
select substr(`text`,`int1`,`int1`), pg_typeof(substr(`text`,`int1`,`int1`)) from test_type_table;
select substr(`text`,`int1`,`uint1`), pg_typeof(substr(`text`,`int1`,`uint1`)) from test_type_table;
select substr(`text`,`int1`,`int2`), pg_typeof(substr(`text`,`int1`,`int2`)) from test_type_table;
select substr(`text`,`int1`,`uint2`), pg_typeof(substr(`text`,`int1`,`uint2`)) from test_type_table;
select substr(`text`,`int1`,`int4`), pg_typeof(substr(`text`,`int1`,`int4`)) from test_type_table;
select substr(`text`,`int1`,`uint4`), pg_typeof(substr(`text`,`int1`,`uint4`)) from test_type_table;
select substr(`text`,`int1`,`int8`), pg_typeof(substr(`text`,`int1`,`int8`)) from test_type_table;
select substr(`text`,`int1`,`uint8`), pg_typeof(substr(`text`,`int1`,`uint8`)) from test_type_table;
select substr(`text`,`int1`,`float4`), pg_typeof(substr(`text`,`int1`,`float4`)) from test_type_table;
select substr(`text`,`int1`,`float8`), pg_typeof(substr(`text`,`int1`,`float8`)) from test_type_table;
select substr(`text`,`int1`,`numeric`), pg_typeof(substr(`text`,`int1`,`numeric`)) from test_type_table;
select substr(`text`,`int1`,`null`), pg_typeof(substr(`text`,`int1`,`null`)) from test_type_table;
select substr(`text`,`uint1`,`int1`), pg_typeof(substr(`text`,`uint1`,`int1`)) from test_type_table;
select substr(`text`,`uint1`,`uint1`), pg_typeof(substr(`text`,`uint1`,`uint1`)) from test_type_table;
select substr(`text`,`uint1`,`int2`), pg_typeof(substr(`text`,`uint1`,`int2`)) from test_type_table;
select substr(`text`,`uint1`,`uint2`), pg_typeof(substr(`text`,`uint1`,`uint2`)) from test_type_table;
select substr(`text`,`uint1`,`int4`), pg_typeof(substr(`text`,`uint1`,`int4`)) from test_type_table;
select substr(`text`,`uint1`,`uint4`), pg_typeof(substr(`text`,`uint1`,`uint4`)) from test_type_table;
select substr(`text`,`uint1`,`int8`), pg_typeof(substr(`text`,`uint1`,`int8`)) from test_type_table;
select substr(`text`,`uint1`,`uint8`), pg_typeof(substr(`text`,`uint1`,`uint8`)) from test_type_table;
select substr(`text`,`uint1`,`float4`), pg_typeof(substr(`text`,`uint1`,`float4`)) from test_type_table;
select substr(`text`,`uint1`,`float8`), pg_typeof(substr(`text`,`uint1`,`float8`)) from test_type_table;
select substr(`text`,`uint1`,`numeric`), pg_typeof(substr(`text`,`uint1`,`numeric`)) from test_type_table;
select substr(`text`,`uint1`,`null`), pg_typeof(substr(`text`,`uint1`,`null`)) from test_type_table;
select substr(`text`,`int2`,`int1`), pg_typeof(substr(`text`,`int2`,`int1`)) from test_type_table;
select substr(`text`,`int2`,`uint1`), pg_typeof(substr(`text`,`int2`,`uint1`)) from test_type_table;
select substr(`text`,`int2`,`int2`), pg_typeof(substr(`text`,`int2`,`int2`)) from test_type_table;
select substr(`text`,`int2`,`uint2`), pg_typeof(substr(`text`,`int2`,`uint2`)) from test_type_table;
select substr(`text`,`int2`,`int4`), pg_typeof(substr(`text`,`int2`,`int4`)) from test_type_table;
select substr(`text`,`int2`,`uint4`), pg_typeof(substr(`text`,`int2`,`uint4`)) from test_type_table;
select substr(`text`,`int2`,`int8`), pg_typeof(substr(`text`,`int2`,`int8`)) from test_type_table;
select substr(`text`,`int2`,`uint8`), pg_typeof(substr(`text`,`int2`,`uint8`)) from test_type_table;
select substr(`text`,`int2`,`float4`), pg_typeof(substr(`text`,`int2`,`float4`)) from test_type_table;
select substr(`text`,`int2`,`float8`), pg_typeof(substr(`text`,`int2`,`float8`)) from test_type_table;
select substr(`text`,`int2`,`numeric`), pg_typeof(substr(`text`,`int2`,`numeric`)) from test_type_table;
select substr(`text`,`int2`,`null`), pg_typeof(substr(`text`,`int2`,`null`)) from test_type_table;
select substr(`text`,`uint2`,`int1`), pg_typeof(substr(`text`,`uint2`,`int1`)) from test_type_table;
select substr(`text`,`uint2`,`uint1`), pg_typeof(substr(`text`,`uint2`,`uint1`)) from test_type_table;
select substr(`text`,`uint2`,`int2`), pg_typeof(substr(`text`,`uint2`,`int2`)) from test_type_table;
select substr(`text`,`uint2`,`uint2`), pg_typeof(substr(`text`,`uint2`,`uint2`)) from test_type_table;
select substr(`text`,`uint2`,`int4`), pg_typeof(substr(`text`,`uint2`,`int4`)) from test_type_table;
select substr(`text`,`uint2`,`uint4`), pg_typeof(substr(`text`,`uint2`,`uint4`)) from test_type_table;
select substr(`text`,`uint2`,`int8`), pg_typeof(substr(`text`,`uint2`,`int8`)) from test_type_table;
select substr(`text`,`uint2`,`uint8`), pg_typeof(substr(`text`,`uint2`,`uint8`)) from test_type_table;
select substr(`text`,`uint2`,`float4`), pg_typeof(substr(`text`,`uint2`,`float4`)) from test_type_table;
select substr(`text`,`uint2`,`float8`), pg_typeof(substr(`text`,`uint2`,`float8`)) from test_type_table;
select substr(`text`,`uint2`,`numeric`), pg_typeof(substr(`text`,`uint2`,`numeric`)) from test_type_table;
select substr(`text`,`uint2`,`null`), pg_typeof(substr(`text`,`uint2`,`null`)) from test_type_table;
select substr(`text`,`int4`,`int1`), pg_typeof(substr(`text`,`int4`,`int1`)) from test_type_table;
select substr(`text`,`int4`,`uint1`), pg_typeof(substr(`text`,`int4`,`uint1`)) from test_type_table;
select substr(`text`,`int4`,`int2`), pg_typeof(substr(`text`,`int4`,`int2`)) from test_type_table;
select substr(`text`,`int4`,`uint2`), pg_typeof(substr(`text`,`int4`,`uint2`)) from test_type_table;
select substr(`text`,`int4`,`int4`), pg_typeof(substr(`text`,`int4`,`int4`)) from test_type_table;
select substr(`text`,`int4`,`uint4`), pg_typeof(substr(`text`,`int4`,`uint4`)) from test_type_table;
select substr(`text`,`int4`,`int8`), pg_typeof(substr(`text`,`int4`,`int8`)) from test_type_table;
select substr(`text`,`int4`,`uint8`), pg_typeof(substr(`text`,`int4`,`uint8`)) from test_type_table;
select substr(`text`,`int4`,`float4`), pg_typeof(substr(`text`,`int4`,`float4`)) from test_type_table;
select substr(`text`,`int4`,`float8`), pg_typeof(substr(`text`,`int4`,`float8`)) from test_type_table;
select substr(`text`,`int4`,`numeric`), pg_typeof(substr(`text`,`int4`,`numeric`)) from test_type_table;
select substr(`text`,`int4`,`null`), pg_typeof(substr(`text`,`int4`,`null`)) from test_type_table;
select substr(`text`,`uint4`,`int1`), pg_typeof(substr(`text`,`uint4`,`int1`)) from test_type_table;
select substr(`text`,`uint4`,`uint1`), pg_typeof(substr(`text`,`uint4`,`uint1`)) from test_type_table;
select substr(`text`,`uint4`,`int2`), pg_typeof(substr(`text`,`uint4`,`int2`)) from test_type_table;
select substr(`text`,`uint4`,`uint2`), pg_typeof(substr(`text`,`uint4`,`uint2`)) from test_type_table;
select substr(`text`,`uint4`,`int4`), pg_typeof(substr(`text`,`uint4`,`int4`)) from test_type_table;
select substr(`text`,`uint4`,`uint4`), pg_typeof(substr(`text`,`uint4`,`uint4`)) from test_type_table;
select substr(`text`,`uint4`,`int8`), pg_typeof(substr(`text`,`uint4`,`int8`)) from test_type_table;
select substr(`text`,`uint4`,`uint8`), pg_typeof(substr(`text`,`uint4`,`uint8`)) from test_type_table;
select substr(`text`,`uint4`,`float4`), pg_typeof(substr(`text`,`uint4`,`float4`)) from test_type_table;
select substr(`text`,`uint4`,`float8`), pg_typeof(substr(`text`,`uint4`,`float8`)) from test_type_table;
select substr(`text`,`uint4`,`numeric`), pg_typeof(substr(`text`,`uint4`,`numeric`)) from test_type_table;
select substr(`text`,`uint4`,`null`), pg_typeof(substr(`text`,`uint4`,`null`)) from test_type_table;
select substr(`text`,`int8`,`int1`), pg_typeof(substr(`text`,`int8`,`int1`)) from test_type_table;
select substr(`text`,`int8`,`uint1`), pg_typeof(substr(`text`,`int8`,`uint1`)) from test_type_table;
select substr(`text`,`int8`,`int2`), pg_typeof(substr(`text`,`int8`,`int2`)) from test_type_table;
select substr(`text`,`int8`,`uint2`), pg_typeof(substr(`text`,`int8`,`uint2`)) from test_type_table;
select substr(`text`,`int8`,`int4`), pg_typeof(substr(`text`,`int8`,`int4`)) from test_type_table;
select substr(`text`,`int8`,`uint4`), pg_typeof(substr(`text`,`int8`,`uint4`)) from test_type_table;
select substr(`text`,`int8`,`int8`), pg_typeof(substr(`text`,`int8`,`int8`)) from test_type_table;
select substr(`text`,`int8`,`uint8`), pg_typeof(substr(`text`,`int8`,`uint8`)) from test_type_table;
select substr(`text`,`int8`,`float4`), pg_typeof(substr(`text`,`int8`,`float4`)) from test_type_table;
select substr(`text`,`int8`,`float8`), pg_typeof(substr(`text`,`int8`,`float8`)) from test_type_table;
select substr(`text`,`int8`,`numeric`), pg_typeof(substr(`text`,`int8`,`numeric`)) from test_type_table;
select substr(`text`,`int8`,`null`), pg_typeof(substr(`text`,`int8`,`null`)) from test_type_table;
select substr(`text`,`uint8`,`int1`), pg_typeof(substr(`text`,`uint8`,`int1`)) from test_type_table;
select substr(`text`,`uint8`,`uint1`), pg_typeof(substr(`text`,`uint8`,`uint1`)) from test_type_table;
select substr(`text`,`uint8`,`int2`), pg_typeof(substr(`text`,`uint8`,`int2`)) from test_type_table;
select substr(`text`,`uint8`,`uint2`), pg_typeof(substr(`text`,`uint8`,`uint2`)) from test_type_table;
select substr(`text`,`uint8`,`int4`), pg_typeof(substr(`text`,`uint8`,`int4`)) from test_type_table;
select substr(`text`,`uint8`,`uint4`), pg_typeof(substr(`text`,`uint8`,`uint4`)) from test_type_table;
select substr(`text`,`uint8`,`int8`), pg_typeof(substr(`text`,`uint8`,`int8`)) from test_type_table;
select substr(`text`,`uint8`,`uint8`), pg_typeof(substr(`text`,`uint8`,`uint8`)) from test_type_table;
select substr(`text`,`uint8`,`float4`), pg_typeof(substr(`text`,`uint8`,`float4`)) from test_type_table;
select substr(`text`,`uint8`,`float8`), pg_typeof(substr(`text`,`uint8`,`float8`)) from test_type_table;
select substr(`text`,`uint8`,`numeric`), pg_typeof(substr(`text`,`uint8`,`numeric`)) from test_type_table;
select substr(`text`,`uint8`,`null`), pg_typeof(substr(`text`,`uint8`,`null`)) from test_type_table;
select substr(`text`,`float4`,`int1`), pg_typeof(substr(`text`,`float4`,`int1`)) from test_type_table;
select substr(`text`,`float4`,`uint1`), pg_typeof(substr(`text`,`float4`,`uint1`)) from test_type_table;
select substr(`text`,`float4`,`int2`), pg_typeof(substr(`text`,`float4`,`int2`)) from test_type_table;
select substr(`text`,`float4`,`uint2`), pg_typeof(substr(`text`,`float4`,`uint2`)) from test_type_table;
select substr(`text`,`float4`,`int4`), pg_typeof(substr(`text`,`float4`,`int4`)) from test_type_table;
select substr(`text`,`float4`,`uint4`), pg_typeof(substr(`text`,`float4`,`uint4`)) from test_type_table;
select substr(`text`,`float4`,`int8`), pg_typeof(substr(`text`,`float4`,`int8`)) from test_type_table;
select substr(`text`,`float4`,`uint8`), pg_typeof(substr(`text`,`float4`,`uint8`)) from test_type_table;
select substr(`text`,`float4`,`float4`), pg_typeof(substr(`text`,`float4`,`float4`)) from test_type_table;
select substr(`text`,`float4`,`float8`), pg_typeof(substr(`text`,`float4`,`float8`)) from test_type_table;
select substr(`text`,`float4`,`numeric`), pg_typeof(substr(`text`,`float4`,`numeric`)) from test_type_table;
select substr(`text`,`float4`,`null`), pg_typeof(substr(`text`,`float4`,`null`)) from test_type_table;
select substr(`text`,`float8`,`int1`), pg_typeof(substr(`text`,`float8`,`int1`)) from test_type_table;
select substr(`text`,`float8`,`uint1`), pg_typeof(substr(`text`,`float8`,`uint1`)) from test_type_table;
select substr(`text`,`float8`,`int2`), pg_typeof(substr(`text`,`float8`,`int2`)) from test_type_table;
select substr(`text`,`float8`,`uint2`), pg_typeof(substr(`text`,`float8`,`uint2`)) from test_type_table;
select substr(`text`,`float8`,`int4`), pg_typeof(substr(`text`,`float8`,`int4`)) from test_type_table;
select substr(`text`,`float8`,`uint4`), pg_typeof(substr(`text`,`float8`,`uint4`)) from test_type_table;
select substr(`text`,`float8`,`int8`), pg_typeof(substr(`text`,`float8`,`int8`)) from test_type_table;
select substr(`text`,`float8`,`uint8`), pg_typeof(substr(`text`,`float8`,`uint8`)) from test_type_table;
select substr(`text`,`float8`,`float4`), pg_typeof(substr(`text`,`float8`,`float4`)) from test_type_table;
select substr(`text`,`float8`,`float8`), pg_typeof(substr(`text`,`float8`,`float8`)) from test_type_table;
select substr(`text`,`float8`,`numeric`), pg_typeof(substr(`text`,`float8`,`numeric`)) from test_type_table;
select substr(`text`,`float8`,`null`), pg_typeof(substr(`text`,`float8`,`null`)) from test_type_table;
select substr(`text`,`numeric`,`int1`), pg_typeof(substr(`text`,`numeric`,`int1`)) from test_type_table;
select substr(`text`,`numeric`,`uint1`), pg_typeof(substr(`text`,`numeric`,`uint1`)) from test_type_table;
select substr(`text`,`numeric`,`int2`), pg_typeof(substr(`text`,`numeric`,`int2`)) from test_type_table;
select substr(`text`,`numeric`,`uint2`), pg_typeof(substr(`text`,`numeric`,`uint2`)) from test_type_table;
select substr(`text`,`numeric`,`int4`), pg_typeof(substr(`text`,`numeric`,`int4`)) from test_type_table;
select substr(`text`,`numeric`,`uint4`), pg_typeof(substr(`text`,`numeric`,`uint4`)) from test_type_table;
select substr(`text`,`numeric`,`int8`), pg_typeof(substr(`text`,`numeric`,`int8`)) from test_type_table;
select substr(`text`,`numeric`,`uint8`), pg_typeof(substr(`text`,`numeric`,`uint8`)) from test_type_table;
select substr(`text`,`numeric`,`float4`), pg_typeof(substr(`text`,`numeric`,`float4`)) from test_type_table;
select substr(`text`,`numeric`,`float8`), pg_typeof(substr(`text`,`numeric`,`float8`)) from test_type_table;
select substr(`text`,`numeric`,`numeric`), pg_typeof(substr(`text`,`numeric`,`numeric`)) from test_type_table;
select substr(`text`,`numeric`,`null`), pg_typeof(substr(`text`,`numeric`,`null`)) from test_type_table;
select substr(`text`,`null`,`int1`), pg_typeof(substr(`text`,`null`,`int1`)) from test_type_table;
select substr(`text`,`null`,`uint1`), pg_typeof(substr(`text`,`null`,`uint1`)) from test_type_table;
select substr(`text`,`null`,`int2`), pg_typeof(substr(`text`,`null`,`int2`)) from test_type_table;
select substr(`text`,`null`,`uint2`), pg_typeof(substr(`text`,`null`,`uint2`)) from test_type_table;
select substr(`text`,`null`,`int4`), pg_typeof(substr(`text`,`null`,`int4`)) from test_type_table;
select substr(`text`,`null`,`uint4`), pg_typeof(substr(`text`,`null`,`uint4`)) from test_type_table;
select substr(`text`,`null`,`int8`), pg_typeof(substr(`text`,`null`,`int8`)) from test_type_table;
select substr(`text`,`null`,`uint8`), pg_typeof(substr(`text`,`null`,`uint8`)) from test_type_table;
select substr(`text`,`null`,`float4`), pg_typeof(substr(`text`,`null`,`float4`)) from test_type_table;
select substr(`text`,`null`,`float8`), pg_typeof(substr(`text`,`null`,`float8`)) from test_type_table;
select substr(`text`,`null`,`numeric`), pg_typeof(substr(`text`,`null`,`numeric`)) from test_type_table;
select substr(`text`,`null`,`null`), pg_typeof(substr(`text`,`null`,`null`)) from test_type_table;
select substr(`null`,`int1`,`int1`), pg_typeof(substr(`null`,`int1`,`int1`)) from test_type_table;
select substr(`null`,`int1`,`uint1`), pg_typeof(substr(`null`,`int1`,`uint1`)) from test_type_table;
select substr(`null`,`int1`,`int2`), pg_typeof(substr(`null`,`int1`,`int2`)) from test_type_table;
select substr(`null`,`int1`,`uint2`), pg_typeof(substr(`null`,`int1`,`uint2`)) from test_type_table;
select substr(`null`,`int1`,`int4`), pg_typeof(substr(`null`,`int1`,`int4`)) from test_type_table;
select substr(`null`,`int1`,`uint4`), pg_typeof(substr(`null`,`int1`,`uint4`)) from test_type_table;
select substr(`null`,`int1`,`int8`), pg_typeof(substr(`null`,`int1`,`int8`)) from test_type_table;
select substr(`null`,`int1`,`uint8`), pg_typeof(substr(`null`,`int1`,`uint8`)) from test_type_table;
select substr(`null`,`int1`,`float4`), pg_typeof(substr(`null`,`int1`,`float4`)) from test_type_table;
select substr(`null`,`int1`,`float8`), pg_typeof(substr(`null`,`int1`,`float8`)) from test_type_table;
select substr(`null`,`int1`,`numeric`), pg_typeof(substr(`null`,`int1`,`numeric`)) from test_type_table;
select substr(`null`,`int1`,`null`), pg_typeof(substr(`null`,`int1`,`null`)) from test_type_table;
select substr(`null`,`uint1`,`int1`), pg_typeof(substr(`null`,`uint1`,`int1`)) from test_type_table;
select substr(`null`,`uint1`,`uint1`), pg_typeof(substr(`null`,`uint1`,`uint1`)) from test_type_table;
select substr(`null`,`uint1`,`int2`), pg_typeof(substr(`null`,`uint1`,`int2`)) from test_type_table;
select substr(`null`,`uint1`,`uint2`), pg_typeof(substr(`null`,`uint1`,`uint2`)) from test_type_table;
select substr(`null`,`uint1`,`int4`), pg_typeof(substr(`null`,`uint1`,`int4`)) from test_type_table;
select substr(`null`,`uint1`,`uint4`), pg_typeof(substr(`null`,`uint1`,`uint4`)) from test_type_table;
select substr(`null`,`uint1`,`int8`), pg_typeof(substr(`null`,`uint1`,`int8`)) from test_type_table;
select substr(`null`,`uint1`,`uint8`), pg_typeof(substr(`null`,`uint1`,`uint8`)) from test_type_table;
select substr(`null`,`uint1`,`float4`), pg_typeof(substr(`null`,`uint1`,`float4`)) from test_type_table;
select substr(`null`,`uint1`,`float8`), pg_typeof(substr(`null`,`uint1`,`float8`)) from test_type_table;
select substr(`null`,`uint1`,`numeric`), pg_typeof(substr(`null`,`uint1`,`numeric`)) from test_type_table;
select substr(`null`,`uint1`,`null`), pg_typeof(substr(`null`,`uint1`,`null`)) from test_type_table;
select substr(`null`,`int2`,`int1`), pg_typeof(substr(`null`,`int2`,`int1`)) from test_type_table;
select substr(`null`,`int2`,`uint1`), pg_typeof(substr(`null`,`int2`,`uint1`)) from test_type_table;
select substr(`null`,`int2`,`int2`), pg_typeof(substr(`null`,`int2`,`int2`)) from test_type_table;
select substr(`null`,`int2`,`uint2`), pg_typeof(substr(`null`,`int2`,`uint2`)) from test_type_table;
select substr(`null`,`int2`,`int4`), pg_typeof(substr(`null`,`int2`,`int4`)) from test_type_table;
select substr(`null`,`int2`,`uint4`), pg_typeof(substr(`null`,`int2`,`uint4`)) from test_type_table;
select substr(`null`,`int2`,`int8`), pg_typeof(substr(`null`,`int2`,`int8`)) from test_type_table;
select substr(`null`,`int2`,`uint8`), pg_typeof(substr(`null`,`int2`,`uint8`)) from test_type_table;
select substr(`null`,`int2`,`float4`), pg_typeof(substr(`null`,`int2`,`float4`)) from test_type_table;
select substr(`null`,`int2`,`float8`), pg_typeof(substr(`null`,`int2`,`float8`)) from test_type_table;
select substr(`null`,`int2`,`numeric`), pg_typeof(substr(`null`,`int2`,`numeric`)) from test_type_table;
select substr(`null`,`int2`,`null`), pg_typeof(substr(`null`,`int2`,`null`)) from test_type_table;
select substr(`null`,`uint2`,`int1`), pg_typeof(substr(`null`,`uint2`,`int1`)) from test_type_table;
select substr(`null`,`uint2`,`uint1`), pg_typeof(substr(`null`,`uint2`,`uint1`)) from test_type_table;
select substr(`null`,`uint2`,`int2`), pg_typeof(substr(`null`,`uint2`,`int2`)) from test_type_table;
select substr(`null`,`uint2`,`uint2`), pg_typeof(substr(`null`,`uint2`,`uint2`)) from test_type_table;
select substr(`null`,`uint2`,`int4`), pg_typeof(substr(`null`,`uint2`,`int4`)) from test_type_table;
select substr(`null`,`uint2`,`uint4`), pg_typeof(substr(`null`,`uint2`,`uint4`)) from test_type_table;
select substr(`null`,`uint2`,`int8`), pg_typeof(substr(`null`,`uint2`,`int8`)) from test_type_table;
select substr(`null`,`uint2`,`uint8`), pg_typeof(substr(`null`,`uint2`,`uint8`)) from test_type_table;
select substr(`null`,`uint2`,`float4`), pg_typeof(substr(`null`,`uint2`,`float4`)) from test_type_table;
select substr(`null`,`uint2`,`float8`), pg_typeof(substr(`null`,`uint2`,`float8`)) from test_type_table;
select substr(`null`,`uint2`,`numeric`), pg_typeof(substr(`null`,`uint2`,`numeric`)) from test_type_table;
select substr(`null`,`uint2`,`null`), pg_typeof(substr(`null`,`uint2`,`null`)) from test_type_table;
select substr(`null`,`int4`,`int1`), pg_typeof(substr(`null`,`int4`,`int1`)) from test_type_table;
select substr(`null`,`int4`,`uint1`), pg_typeof(substr(`null`,`int4`,`uint1`)) from test_type_table;
select substr(`null`,`int4`,`int2`), pg_typeof(substr(`null`,`int4`,`int2`)) from test_type_table;
select substr(`null`,`int4`,`uint2`), pg_typeof(substr(`null`,`int4`,`uint2`)) from test_type_table;
select substr(`null`,`int4`,`int4`), pg_typeof(substr(`null`,`int4`,`int4`)) from test_type_table;
select substr(`null`,`int4`,`uint4`), pg_typeof(substr(`null`,`int4`,`uint4`)) from test_type_table;
select substr(`null`,`int4`,`int8`), pg_typeof(substr(`null`,`int4`,`int8`)) from test_type_table;
select substr(`null`,`int4`,`uint8`), pg_typeof(substr(`null`,`int4`,`uint8`)) from test_type_table;
select substr(`null`,`int4`,`float4`), pg_typeof(substr(`null`,`int4`,`float4`)) from test_type_table;
select substr(`null`,`int4`,`float8`), pg_typeof(substr(`null`,`int4`,`float8`)) from test_type_table;
select substr(`null`,`int4`,`numeric`), pg_typeof(substr(`null`,`int4`,`numeric`)) from test_type_table;
select substr(`null`,`int4`,`null`), pg_typeof(substr(`null`,`int4`,`null`)) from test_type_table;
select substr(`null`,`uint4`,`int1`), pg_typeof(substr(`null`,`uint4`,`int1`)) from test_type_table;
select substr(`null`,`uint4`,`uint1`), pg_typeof(substr(`null`,`uint4`,`uint1`)) from test_type_table;
select substr(`null`,`uint4`,`int2`), pg_typeof(substr(`null`,`uint4`,`int2`)) from test_type_table;
select substr(`null`,`uint4`,`uint2`), pg_typeof(substr(`null`,`uint4`,`uint2`)) from test_type_table;
select substr(`null`,`uint4`,`int4`), pg_typeof(substr(`null`,`uint4`,`int4`)) from test_type_table;
select substr(`null`,`uint4`,`uint4`), pg_typeof(substr(`null`,`uint4`,`uint4`)) from test_type_table;
select substr(`null`,`uint4`,`int8`), pg_typeof(substr(`null`,`uint4`,`int8`)) from test_type_table;
select substr(`null`,`uint4`,`uint8`), pg_typeof(substr(`null`,`uint4`,`uint8`)) from test_type_table;
select substr(`null`,`uint4`,`float4`), pg_typeof(substr(`null`,`uint4`,`float4`)) from test_type_table;
select substr(`null`,`uint4`,`float8`), pg_typeof(substr(`null`,`uint4`,`float8`)) from test_type_table;
select substr(`null`,`uint4`,`numeric`), pg_typeof(substr(`null`,`uint4`,`numeric`)) from test_type_table;
select substr(`null`,`uint4`,`null`), pg_typeof(substr(`null`,`uint4`,`null`)) from test_type_table;
select substr(`null`,`int8`,`int1`), pg_typeof(substr(`null`,`int8`,`int1`)) from test_type_table;
select substr(`null`,`int8`,`uint1`), pg_typeof(substr(`null`,`int8`,`uint1`)) from test_type_table;
select substr(`null`,`int8`,`int2`), pg_typeof(substr(`null`,`int8`,`int2`)) from test_type_table;
select substr(`null`,`int8`,`uint2`), pg_typeof(substr(`null`,`int8`,`uint2`)) from test_type_table;
select substr(`null`,`int8`,`int4`), pg_typeof(substr(`null`,`int8`,`int4`)) from test_type_table;
select substr(`null`,`int8`,`uint4`), pg_typeof(substr(`null`,`int8`,`uint4`)) from test_type_table;
select substr(`null`,`int8`,`int8`), pg_typeof(substr(`null`,`int8`,`int8`)) from test_type_table;
select substr(`null`,`int8`,`uint8`), pg_typeof(substr(`null`,`int8`,`uint8`)) from test_type_table;
select substr(`null`,`int8`,`float4`), pg_typeof(substr(`null`,`int8`,`float4`)) from test_type_table;
select substr(`null`,`int8`,`float8`), pg_typeof(substr(`null`,`int8`,`float8`)) from test_type_table;
select substr(`null`,`int8`,`numeric`), pg_typeof(substr(`null`,`int8`,`numeric`)) from test_type_table;
select substr(`null`,`int8`,`null`), pg_typeof(substr(`null`,`int8`,`null`)) from test_type_table;
select substr(`null`,`uint8`,`int1`), pg_typeof(substr(`null`,`uint8`,`int1`)) from test_type_table;
select substr(`null`,`uint8`,`uint1`), pg_typeof(substr(`null`,`uint8`,`uint1`)) from test_type_table;
select substr(`null`,`uint8`,`int2`), pg_typeof(substr(`null`,`uint8`,`int2`)) from test_type_table;
select substr(`null`,`uint8`,`uint2`), pg_typeof(substr(`null`,`uint8`,`uint2`)) from test_type_table;
select substr(`null`,`uint8`,`int4`), pg_typeof(substr(`null`,`uint8`,`int4`)) from test_type_table;
select substr(`null`,`uint8`,`uint4`), pg_typeof(substr(`null`,`uint8`,`uint4`)) from test_type_table;
select substr(`null`,`uint8`,`int8`), pg_typeof(substr(`null`,`uint8`,`int8`)) from test_type_table;
select substr(`null`,`uint8`,`uint8`), pg_typeof(substr(`null`,`uint8`,`uint8`)) from test_type_table;
select substr(`null`,`uint8`,`float4`), pg_typeof(substr(`null`,`uint8`,`float4`)) from test_type_table;
select substr(`null`,`uint8`,`float8`), pg_typeof(substr(`null`,`uint8`,`float8`)) from test_type_table;
select substr(`null`,`uint8`,`numeric`), pg_typeof(substr(`null`,`uint8`,`numeric`)) from test_type_table;
select substr(`null`,`uint8`,`null`), pg_typeof(substr(`null`,`uint8`,`null`)) from test_type_table;
select substr(`null`,`float4`,`int1`), pg_typeof(substr(`null`,`float4`,`int1`)) from test_type_table;
select substr(`null`,`float4`,`uint1`), pg_typeof(substr(`null`,`float4`,`uint1`)) from test_type_table;
select substr(`null`,`float4`,`int2`), pg_typeof(substr(`null`,`float4`,`int2`)) from test_type_table;
select substr(`null`,`float4`,`uint2`), pg_typeof(substr(`null`,`float4`,`uint2`)) from test_type_table;
select substr(`null`,`float4`,`int4`), pg_typeof(substr(`null`,`float4`,`int4`)) from test_type_table;
select substr(`null`,`float4`,`uint4`), pg_typeof(substr(`null`,`float4`,`uint4`)) from test_type_table;
select substr(`null`,`float4`,`int8`), pg_typeof(substr(`null`,`float4`,`int8`)) from test_type_table;
select substr(`null`,`float4`,`uint8`), pg_typeof(substr(`null`,`float4`,`uint8`)) from test_type_table;
select substr(`null`,`float4`,`float4`), pg_typeof(substr(`null`,`float4`,`float4`)) from test_type_table;
select substr(`null`,`float4`,`float8`), pg_typeof(substr(`null`,`float4`,`float8`)) from test_type_table;
select substr(`null`,`float4`,`numeric`), pg_typeof(substr(`null`,`float4`,`numeric`)) from test_type_table;
select substr(`null`,`float4`,`null`), pg_typeof(substr(`null`,`float4`,`null`)) from test_type_table;
select substr(`null`,`float8`,`int1`), pg_typeof(substr(`null`,`float8`,`int1`)) from test_type_table;
select substr(`null`,`float8`,`uint1`), pg_typeof(substr(`null`,`float8`,`uint1`)) from test_type_table;
select substr(`null`,`float8`,`int2`), pg_typeof(substr(`null`,`float8`,`int2`)) from test_type_table;
select substr(`null`,`float8`,`uint2`), pg_typeof(substr(`null`,`float8`,`uint2`)) from test_type_table;
select substr(`null`,`float8`,`int4`), pg_typeof(substr(`null`,`float8`,`int4`)) from test_type_table;
select substr(`null`,`float8`,`uint4`), pg_typeof(substr(`null`,`float8`,`uint4`)) from test_type_table;
select substr(`null`,`float8`,`int8`), pg_typeof(substr(`null`,`float8`,`int8`)) from test_type_table;
select substr(`null`,`float8`,`uint8`), pg_typeof(substr(`null`,`float8`,`uint8`)) from test_type_table;
select substr(`null`,`float8`,`float4`), pg_typeof(substr(`null`,`float8`,`float4`)) from test_type_table;
select substr(`null`,`float8`,`float8`), pg_typeof(substr(`null`,`float8`,`float8`)) from test_type_table;
select substr(`null`,`float8`,`numeric`), pg_typeof(substr(`null`,`float8`,`numeric`)) from test_type_table;
select substr(`null`,`float8`,`null`), pg_typeof(substr(`null`,`float8`,`null`)) from test_type_table;
select substr(`null`,`numeric`,`int1`), pg_typeof(substr(`null`,`numeric`,`int1`)) from test_type_table;
select substr(`null`,`numeric`,`uint1`), pg_typeof(substr(`null`,`numeric`,`uint1`)) from test_type_table;
select substr(`null`,`numeric`,`int2`), pg_typeof(substr(`null`,`numeric`,`int2`)) from test_type_table;
select substr(`null`,`numeric`,`uint2`), pg_typeof(substr(`null`,`numeric`,`uint2`)) from test_type_table;
select substr(`null`,`numeric`,`int4`), pg_typeof(substr(`null`,`numeric`,`int4`)) from test_type_table;
select substr(`null`,`numeric`,`uint4`), pg_typeof(substr(`null`,`numeric`,`uint4`)) from test_type_table;
select substr(`null`,`numeric`,`int8`), pg_typeof(substr(`null`,`numeric`,`int8`)) from test_type_table;
select substr(`null`,`numeric`,`uint8`), pg_typeof(substr(`null`,`numeric`,`uint8`)) from test_type_table;
select substr(`null`,`numeric`,`float4`), pg_typeof(substr(`null`,`numeric`,`float4`)) from test_type_table;
select substr(`null`,`numeric`,`float8`), pg_typeof(substr(`null`,`numeric`,`float8`)) from test_type_table;
select substr(`null`,`numeric`,`numeric`), pg_typeof(substr(`null`,`numeric`,`numeric`)) from test_type_table;
select substr(`null`,`numeric`,`null`), pg_typeof(substr(`null`,`numeric`,`null`)) from test_type_table;
select substr(`null`,`null`,`int1`), pg_typeof(substr(`null`,`null`,`int1`)) from test_type_table;
select substr(`null`,`null`,`uint1`), pg_typeof(substr(`null`,`null`,`uint1`)) from test_type_table;
select substr(`null`,`null`,`int2`), pg_typeof(substr(`null`,`null`,`int2`)) from test_type_table;
select substr(`null`,`null`,`uint2`), pg_typeof(substr(`null`,`null`,`uint2`)) from test_type_table;
select substr(`null`,`null`,`int4`), pg_typeof(substr(`null`,`null`,`int4`)) from test_type_table;
select substr(`null`,`null`,`uint4`), pg_typeof(substr(`null`,`null`,`uint4`)) from test_type_table;
select substr(`null`,`null`,`int8`), pg_typeof(substr(`null`,`null`,`int8`)) from test_type_table;
select substr(`null`,`null`,`uint8`), pg_typeof(substr(`null`,`null`,`uint8`)) from test_type_table;
select substr(`null`,`null`,`float4`), pg_typeof(substr(`null`,`null`,`float4`)) from test_type_table;
select substr(`null`,`null`,`float8`), pg_typeof(substr(`null`,`null`,`float8`)) from test_type_table;
select substr(`null`,`null`,`numeric`), pg_typeof(substr(`null`,`null`,`numeric`)) from test_type_table;
select substr(`null`,`null`,`null`), pg_typeof(substr(`null`,`null`,`null`)) from test_type_table;
select substring(`char`,`int1`,`int1`), pg_typeof(substring(`char`,`int1`,`int1`)) from test_type_table;
select substring(`char`,`int1`,`uint1`), pg_typeof(substring(`char`,`int1`,`uint1`)) from test_type_table;
select substring(`char`,`int1`,`int2`), pg_typeof(substring(`char`,`int1`,`int2`)) from test_type_table;
select substring(`char`,`int1`,`uint2`), pg_typeof(substring(`char`,`int1`,`uint2`)) from test_type_table;
select substring(`char`,`int1`,`int4`), pg_typeof(substring(`char`,`int1`,`int4`)) from test_type_table;
select substring(`char`,`int1`,`uint4`), pg_typeof(substring(`char`,`int1`,`uint4`)) from test_type_table;
select substring(`char`,`int1`,`int8`), pg_typeof(substring(`char`,`int1`,`int8`)) from test_type_table;
select substring(`char`,`int1`,`uint8`), pg_typeof(substring(`char`,`int1`,`uint8`)) from test_type_table;
select substring(`char`,`int1`,`float4`), pg_typeof(substring(`char`,`int1`,`float4`)) from test_type_table;
select substring(`char`,`int1`,`float8`), pg_typeof(substring(`char`,`int1`,`float8`)) from test_type_table;
select substring(`char`,`int1`,`numeric`), pg_typeof(substring(`char`,`int1`,`numeric`)) from test_type_table;
select substring(`char`,`int1`,`null`), pg_typeof(substring(`char`,`int1`,`null`)) from test_type_table;
select substring(`char`,`uint1`,`int1`), pg_typeof(substring(`char`,`uint1`,`int1`)) from test_type_table;
select substring(`char`,`uint1`,`uint1`), pg_typeof(substring(`char`,`uint1`,`uint1`)) from test_type_table;
select substring(`char`,`uint1`,`int2`), pg_typeof(substring(`char`,`uint1`,`int2`)) from test_type_table;
select substring(`char`,`uint1`,`uint2`), pg_typeof(substring(`char`,`uint1`,`uint2`)) from test_type_table;
select substring(`char`,`uint1`,`int4`), pg_typeof(substring(`char`,`uint1`,`int4`)) from test_type_table;
select substring(`char`,`uint1`,`uint4`), pg_typeof(substring(`char`,`uint1`,`uint4`)) from test_type_table;
select substring(`char`,`uint1`,`int8`), pg_typeof(substring(`char`,`uint1`,`int8`)) from test_type_table;
select substring(`char`,`uint1`,`uint8`), pg_typeof(substring(`char`,`uint1`,`uint8`)) from test_type_table;
select substring(`char`,`uint1`,`float4`), pg_typeof(substring(`char`,`uint1`,`float4`)) from test_type_table;
select substring(`char`,`uint1`,`float8`), pg_typeof(substring(`char`,`uint1`,`float8`)) from test_type_table;
select substring(`char`,`uint1`,`numeric`), pg_typeof(substring(`char`,`uint1`,`numeric`)) from test_type_table;
select substring(`char`,`uint1`,`null`), pg_typeof(substring(`char`,`uint1`,`null`)) from test_type_table;
select substring(`char`,`int2`,`int1`), pg_typeof(substring(`char`,`int2`,`int1`)) from test_type_table;
select substring(`char`,`int2`,`uint1`), pg_typeof(substring(`char`,`int2`,`uint1`)) from test_type_table;
select substring(`char`,`int2`,`int2`), pg_typeof(substring(`char`,`int2`,`int2`)) from test_type_table;
select substring(`char`,`int2`,`uint2`), pg_typeof(substring(`char`,`int2`,`uint2`)) from test_type_table;
select substring(`char`,`int2`,`int4`), pg_typeof(substring(`char`,`int2`,`int4`)) from test_type_table;
select substring(`char`,`int2`,`uint4`), pg_typeof(substring(`char`,`int2`,`uint4`)) from test_type_table;
select substring(`char`,`int2`,`int8`), pg_typeof(substring(`char`,`int2`,`int8`)) from test_type_table;
select substring(`char`,`int2`,`uint8`), pg_typeof(substring(`char`,`int2`,`uint8`)) from test_type_table;
select substring(`char`,`int2`,`float4`), pg_typeof(substring(`char`,`int2`,`float4`)) from test_type_table;
select substring(`char`,`int2`,`float8`), pg_typeof(substring(`char`,`int2`,`float8`)) from test_type_table;
select substring(`char`,`int2`,`numeric`), pg_typeof(substring(`char`,`int2`,`numeric`)) from test_type_table;
select substring(`char`,`int2`,`null`), pg_typeof(substring(`char`,`int2`,`null`)) from test_type_table;
select substring(`char`,`uint2`,`int1`), pg_typeof(substring(`char`,`uint2`,`int1`)) from test_type_table;
select substring(`char`,`uint2`,`uint1`), pg_typeof(substring(`char`,`uint2`,`uint1`)) from test_type_table;
select substring(`char`,`uint2`,`int2`), pg_typeof(substring(`char`,`uint2`,`int2`)) from test_type_table;
select substring(`char`,`uint2`,`uint2`), pg_typeof(substring(`char`,`uint2`,`uint2`)) from test_type_table;
select substring(`char`,`uint2`,`int4`), pg_typeof(substring(`char`,`uint2`,`int4`)) from test_type_table;
select substring(`char`,`uint2`,`uint4`), pg_typeof(substring(`char`,`uint2`,`uint4`)) from test_type_table;
select substring(`char`,`uint2`,`int8`), pg_typeof(substring(`char`,`uint2`,`int8`)) from test_type_table;
select substring(`char`,`uint2`,`uint8`), pg_typeof(substring(`char`,`uint2`,`uint8`)) from test_type_table;
select substring(`char`,`uint2`,`float4`), pg_typeof(substring(`char`,`uint2`,`float4`)) from test_type_table;
select substring(`char`,`uint2`,`float8`), pg_typeof(substring(`char`,`uint2`,`float8`)) from test_type_table;
select substring(`char`,`uint2`,`numeric`), pg_typeof(substring(`char`,`uint2`,`numeric`)) from test_type_table;
select substring(`char`,`uint2`,`null`), pg_typeof(substring(`char`,`uint2`,`null`)) from test_type_table;
select substring(`char`,`int4`,`int1`), pg_typeof(substring(`char`,`int4`,`int1`)) from test_type_table;
select substring(`char`,`int4`,`uint1`), pg_typeof(substring(`char`,`int4`,`uint1`)) from test_type_table;
select substring(`char`,`int4`,`int2`), pg_typeof(substring(`char`,`int4`,`int2`)) from test_type_table;
select substring(`char`,`int4`,`uint2`), pg_typeof(substring(`char`,`int4`,`uint2`)) from test_type_table;
select substring(`char`,`int4`,`int4`), pg_typeof(substring(`char`,`int4`,`int4`)) from test_type_table;
select substring(`char`,`int4`,`uint4`), pg_typeof(substring(`char`,`int4`,`uint4`)) from test_type_table;
select substring(`char`,`int4`,`int8`), pg_typeof(substring(`char`,`int4`,`int8`)) from test_type_table;
select substring(`char`,`int4`,`uint8`), pg_typeof(substring(`char`,`int4`,`uint8`)) from test_type_table;
select substring(`char`,`int4`,`float4`), pg_typeof(substring(`char`,`int4`,`float4`)) from test_type_table;
select substring(`char`,`int4`,`float8`), pg_typeof(substring(`char`,`int4`,`float8`)) from test_type_table;
select substring(`char`,`int4`,`numeric`), pg_typeof(substring(`char`,`int4`,`numeric`)) from test_type_table;
select substring(`char`,`int4`,`null`), pg_typeof(substring(`char`,`int4`,`null`)) from test_type_table;
select substring(`char`,`uint4`,`int1`), pg_typeof(substring(`char`,`uint4`,`int1`)) from test_type_table;
select substring(`char`,`uint4`,`uint1`), pg_typeof(substring(`char`,`uint4`,`uint1`)) from test_type_table;
select substring(`char`,`uint4`,`int2`), pg_typeof(substring(`char`,`uint4`,`int2`)) from test_type_table;
select substring(`char`,`uint4`,`uint2`), pg_typeof(substring(`char`,`uint4`,`uint2`)) from test_type_table;
select substring(`char`,`uint4`,`int4`), pg_typeof(substring(`char`,`uint4`,`int4`)) from test_type_table;
select substring(`char`,`uint4`,`uint4`), pg_typeof(substring(`char`,`uint4`,`uint4`)) from test_type_table;
select substring(`char`,`uint4`,`int8`), pg_typeof(substring(`char`,`uint4`,`int8`)) from test_type_table;
select substring(`char`,`uint4`,`uint8`), pg_typeof(substring(`char`,`uint4`,`uint8`)) from test_type_table;
select substring(`char`,`uint4`,`float4`), pg_typeof(substring(`char`,`uint4`,`float4`)) from test_type_table;
select substring(`char`,`uint4`,`float8`), pg_typeof(substring(`char`,`uint4`,`float8`)) from test_type_table;
select substring(`char`,`uint4`,`numeric`), pg_typeof(substring(`char`,`uint4`,`numeric`)) from test_type_table;
select substring(`char`,`uint4`,`null`), pg_typeof(substring(`char`,`uint4`,`null`)) from test_type_table;
select substring(`char`,`int8`,`int1`), pg_typeof(substring(`char`,`int8`,`int1`)) from test_type_table;
select substring(`char`,`int8`,`uint1`), pg_typeof(substring(`char`,`int8`,`uint1`)) from test_type_table;
select substring(`char`,`int8`,`int2`), pg_typeof(substring(`char`,`int8`,`int2`)) from test_type_table;
select substring(`char`,`int8`,`uint2`), pg_typeof(substring(`char`,`int8`,`uint2`)) from test_type_table;
select substring(`char`,`int8`,`int4`), pg_typeof(substring(`char`,`int8`,`int4`)) from test_type_table;
select substring(`char`,`int8`,`uint4`), pg_typeof(substring(`char`,`int8`,`uint4`)) from test_type_table;
select substring(`char`,`int8`,`int8`), pg_typeof(substring(`char`,`int8`,`int8`)) from test_type_table;
select substring(`char`,`int8`,`uint8`), pg_typeof(substring(`char`,`int8`,`uint8`)) from test_type_table;
select substring(`char`,`int8`,`float4`), pg_typeof(substring(`char`,`int8`,`float4`)) from test_type_table;
select substring(`char`,`int8`,`float8`), pg_typeof(substring(`char`,`int8`,`float8`)) from test_type_table;
select substring(`char`,`int8`,`numeric`), pg_typeof(substring(`char`,`int8`,`numeric`)) from test_type_table;
select substring(`char`,`int8`,`null`), pg_typeof(substring(`char`,`int8`,`null`)) from test_type_table;
select substring(`char`,`uint8`,`int1`), pg_typeof(substring(`char`,`uint8`,`int1`)) from test_type_table;
select substring(`char`,`uint8`,`uint1`), pg_typeof(substring(`char`,`uint8`,`uint1`)) from test_type_table;
select substring(`char`,`uint8`,`int2`), pg_typeof(substring(`char`,`uint8`,`int2`)) from test_type_table;
select substring(`char`,`uint8`,`uint2`), pg_typeof(substring(`char`,`uint8`,`uint2`)) from test_type_table;
select substring(`char`,`uint8`,`int4`), pg_typeof(substring(`char`,`uint8`,`int4`)) from test_type_table;
select substring(`char`,`uint8`,`uint4`), pg_typeof(substring(`char`,`uint8`,`uint4`)) from test_type_table;
select substring(`char`,`uint8`,`int8`), pg_typeof(substring(`char`,`uint8`,`int8`)) from test_type_table;
select substring(`char`,`uint8`,`uint8`), pg_typeof(substring(`char`,`uint8`,`uint8`)) from test_type_table;
select substring(`char`,`uint8`,`float4`), pg_typeof(substring(`char`,`uint8`,`float4`)) from test_type_table;
select substring(`char`,`uint8`,`float8`), pg_typeof(substring(`char`,`uint8`,`float8`)) from test_type_table;
select substring(`char`,`uint8`,`numeric`), pg_typeof(substring(`char`,`uint8`,`numeric`)) from test_type_table;
select substring(`char`,`uint8`,`null`), pg_typeof(substring(`char`,`uint8`,`null`)) from test_type_table;
select substring(`char`,`float4`,`int1`), pg_typeof(substring(`char`,`float4`,`int1`)) from test_type_table;
select substring(`char`,`float4`,`uint1`), pg_typeof(substring(`char`,`float4`,`uint1`)) from test_type_table;
select substring(`char`,`float4`,`int2`), pg_typeof(substring(`char`,`float4`,`int2`)) from test_type_table;
select substring(`char`,`float4`,`uint2`), pg_typeof(substring(`char`,`float4`,`uint2`)) from test_type_table;
select substring(`char`,`float4`,`int4`), pg_typeof(substring(`char`,`float4`,`int4`)) from test_type_table;
select substring(`char`,`float4`,`uint4`), pg_typeof(substring(`char`,`float4`,`uint4`)) from test_type_table;
select substring(`char`,`float4`,`int8`), pg_typeof(substring(`char`,`float4`,`int8`)) from test_type_table;
select substring(`char`,`float4`,`uint8`), pg_typeof(substring(`char`,`float4`,`uint8`)) from test_type_table;
select substring(`char`,`float4`,`float4`), pg_typeof(substring(`char`,`float4`,`float4`)) from test_type_table;
select substring(`char`,`float4`,`float8`), pg_typeof(substring(`char`,`float4`,`float8`)) from test_type_table;
select substring(`char`,`float4`,`numeric`), pg_typeof(substring(`char`,`float4`,`numeric`)) from test_type_table;
select substring(`char`,`float4`,`null`), pg_typeof(substring(`char`,`float4`,`null`)) from test_type_table;
select substring(`char`,`float8`,`int1`), pg_typeof(substring(`char`,`float8`,`int1`)) from test_type_table;
select substring(`char`,`float8`,`uint1`), pg_typeof(substring(`char`,`float8`,`uint1`)) from test_type_table;
select substring(`char`,`float8`,`int2`), pg_typeof(substring(`char`,`float8`,`int2`)) from test_type_table;
select substring(`char`,`float8`,`uint2`), pg_typeof(substring(`char`,`float8`,`uint2`)) from test_type_table;
select substring(`char`,`float8`,`int4`), pg_typeof(substring(`char`,`float8`,`int4`)) from test_type_table;
select substring(`char`,`float8`,`uint4`), pg_typeof(substring(`char`,`float8`,`uint4`)) from test_type_table;
select substring(`char`,`float8`,`int8`), pg_typeof(substring(`char`,`float8`,`int8`)) from test_type_table;
select substring(`char`,`float8`,`uint8`), pg_typeof(substring(`char`,`float8`,`uint8`)) from test_type_table;
select substring(`char`,`float8`,`float4`), pg_typeof(substring(`char`,`float8`,`float4`)) from test_type_table;
select substring(`char`,`float8`,`float8`), pg_typeof(substring(`char`,`float8`,`float8`)) from test_type_table;
select substring(`char`,`float8`,`numeric`), pg_typeof(substring(`char`,`float8`,`numeric`)) from test_type_table;
select substring(`char`,`float8`,`null`), pg_typeof(substring(`char`,`float8`,`null`)) from test_type_table;
select substring(`char`,`numeric`,`int1`), pg_typeof(substring(`char`,`numeric`,`int1`)) from test_type_table;
select substring(`char`,`numeric`,`uint1`), pg_typeof(substring(`char`,`numeric`,`uint1`)) from test_type_table;
select substring(`char`,`numeric`,`int2`), pg_typeof(substring(`char`,`numeric`,`int2`)) from test_type_table;
select substring(`char`,`numeric`,`uint2`), pg_typeof(substring(`char`,`numeric`,`uint2`)) from test_type_table;
select substring(`char`,`numeric`,`int4`), pg_typeof(substring(`char`,`numeric`,`int4`)) from test_type_table;
select substring(`char`,`numeric`,`uint4`), pg_typeof(substring(`char`,`numeric`,`uint4`)) from test_type_table;
select substring(`char`,`numeric`,`int8`), pg_typeof(substring(`char`,`numeric`,`int8`)) from test_type_table;
select substring(`char`,`numeric`,`uint8`), pg_typeof(substring(`char`,`numeric`,`uint8`)) from test_type_table;
select substring(`char`,`numeric`,`float4`), pg_typeof(substring(`char`,`numeric`,`float4`)) from test_type_table;
select substring(`char`,`numeric`,`float8`), pg_typeof(substring(`char`,`numeric`,`float8`)) from test_type_table;
select substring(`char`,`numeric`,`numeric`), pg_typeof(substring(`char`,`numeric`,`numeric`)) from test_type_table;
select substring(`char`,`numeric`,`null`), pg_typeof(substring(`char`,`numeric`,`null`)) from test_type_table;
select substring(`char`,`null`,`int1`), pg_typeof(substring(`char`,`null`,`int1`)) from test_type_table;
select substring(`char`,`null`,`uint1`), pg_typeof(substring(`char`,`null`,`uint1`)) from test_type_table;
select substring(`char`,`null`,`int2`), pg_typeof(substring(`char`,`null`,`int2`)) from test_type_table;
select substring(`char`,`null`,`uint2`), pg_typeof(substring(`char`,`null`,`uint2`)) from test_type_table;
select substring(`char`,`null`,`int4`), pg_typeof(substring(`char`,`null`,`int4`)) from test_type_table;
select substring(`char`,`null`,`uint4`), pg_typeof(substring(`char`,`null`,`uint4`)) from test_type_table;
select substring(`char`,`null`,`int8`), pg_typeof(substring(`char`,`null`,`int8`)) from test_type_table;
select substring(`char`,`null`,`uint8`), pg_typeof(substring(`char`,`null`,`uint8`)) from test_type_table;
select substring(`char`,`null`,`float4`), pg_typeof(substring(`char`,`null`,`float4`)) from test_type_table;
select substring(`char`,`null`,`float8`), pg_typeof(substring(`char`,`null`,`float8`)) from test_type_table;
select substring(`char`,`null`,`numeric`), pg_typeof(substring(`char`,`null`,`numeric`)) from test_type_table;
select substring(`char`,`null`,`null`), pg_typeof(substring(`char`,`null`,`null`)) from test_type_table;
select substring(`varchar`,`int1`,`int1`), pg_typeof(substring(`varchar`,`int1`,`int1`)) from test_type_table;
select substring(`varchar`,`int1`,`uint1`), pg_typeof(substring(`varchar`,`int1`,`uint1`)) from test_type_table;
select substring(`varchar`,`int1`,`int2`), pg_typeof(substring(`varchar`,`int1`,`int2`)) from test_type_table;
select substring(`varchar`,`int1`,`uint2`), pg_typeof(substring(`varchar`,`int1`,`uint2`)) from test_type_table;
select substring(`varchar`,`int1`,`int4`), pg_typeof(substring(`varchar`,`int1`,`int4`)) from test_type_table;
select substring(`varchar`,`int1`,`uint4`), pg_typeof(substring(`varchar`,`int1`,`uint4`)) from test_type_table;
select substring(`varchar`,`int1`,`int8`), pg_typeof(substring(`varchar`,`int1`,`int8`)) from test_type_table;
select substring(`varchar`,`int1`,`uint8`), pg_typeof(substring(`varchar`,`int1`,`uint8`)) from test_type_table;
select substring(`varchar`,`int1`,`float4`), pg_typeof(substring(`varchar`,`int1`,`float4`)) from test_type_table;
select substring(`varchar`,`int1`,`float8`), pg_typeof(substring(`varchar`,`int1`,`float8`)) from test_type_table;
select substring(`varchar`,`int1`,`numeric`), pg_typeof(substring(`varchar`,`int1`,`numeric`)) from test_type_table;
select substring(`varchar`,`int1`,`null`), pg_typeof(substring(`varchar`,`int1`,`null`)) from test_type_table;
select substring(`varchar`,`uint1`,`int1`), pg_typeof(substring(`varchar`,`uint1`,`int1`)) from test_type_table;
select substring(`varchar`,`uint1`,`uint1`), pg_typeof(substring(`varchar`,`uint1`,`uint1`)) from test_type_table;
select substring(`varchar`,`uint1`,`int2`), pg_typeof(substring(`varchar`,`uint1`,`int2`)) from test_type_table;
select substring(`varchar`,`uint1`,`uint2`), pg_typeof(substring(`varchar`,`uint1`,`uint2`)) from test_type_table;
select substring(`varchar`,`uint1`,`int4`), pg_typeof(substring(`varchar`,`uint1`,`int4`)) from test_type_table;
select substring(`varchar`,`uint1`,`uint4`), pg_typeof(substring(`varchar`,`uint1`,`uint4`)) from test_type_table;
select substring(`varchar`,`uint1`,`int8`), pg_typeof(substring(`varchar`,`uint1`,`int8`)) from test_type_table;
select substring(`varchar`,`uint1`,`uint8`), pg_typeof(substring(`varchar`,`uint1`,`uint8`)) from test_type_table;
select substring(`varchar`,`uint1`,`float4`), pg_typeof(substring(`varchar`,`uint1`,`float4`)) from test_type_table;
select substring(`varchar`,`uint1`,`float8`), pg_typeof(substring(`varchar`,`uint1`,`float8`)) from test_type_table;
select substring(`varchar`,`uint1`,`numeric`), pg_typeof(substring(`varchar`,`uint1`,`numeric`)) from test_type_table;
select substring(`varchar`,`uint1`,`null`), pg_typeof(substring(`varchar`,`uint1`,`null`)) from test_type_table;
select substring(`varchar`,`int2`,`int1`), pg_typeof(substring(`varchar`,`int2`,`int1`)) from test_type_table;
select substring(`varchar`,`int2`,`uint1`), pg_typeof(substring(`varchar`,`int2`,`uint1`)) from test_type_table;
select substring(`varchar`,`int2`,`int2`), pg_typeof(substring(`varchar`,`int2`,`int2`)) from test_type_table;
select substring(`varchar`,`int2`,`uint2`), pg_typeof(substring(`varchar`,`int2`,`uint2`)) from test_type_table;
select substring(`varchar`,`int2`,`int4`), pg_typeof(substring(`varchar`,`int2`,`int4`)) from test_type_table;
select substring(`varchar`,`int2`,`uint4`), pg_typeof(substring(`varchar`,`int2`,`uint4`)) from test_type_table;
select substring(`varchar`,`int2`,`int8`), pg_typeof(substring(`varchar`,`int2`,`int8`)) from test_type_table;
select substring(`varchar`,`int2`,`uint8`), pg_typeof(substring(`varchar`,`int2`,`uint8`)) from test_type_table;
select substring(`varchar`,`int2`,`float4`), pg_typeof(substring(`varchar`,`int2`,`float4`)) from test_type_table;
select substring(`varchar`,`int2`,`float8`), pg_typeof(substring(`varchar`,`int2`,`float8`)) from test_type_table;
select substring(`varchar`,`int2`,`numeric`), pg_typeof(substring(`varchar`,`int2`,`numeric`)) from test_type_table;
select substring(`varchar`,`int2`,`null`), pg_typeof(substring(`varchar`,`int2`,`null`)) from test_type_table;
select substring(`varchar`,`uint2`,`int1`), pg_typeof(substring(`varchar`,`uint2`,`int1`)) from test_type_table;
select substring(`varchar`,`uint2`,`uint1`), pg_typeof(substring(`varchar`,`uint2`,`uint1`)) from test_type_table;
select substring(`varchar`,`uint2`,`int2`), pg_typeof(substring(`varchar`,`uint2`,`int2`)) from test_type_table;
select substring(`varchar`,`uint2`,`uint2`), pg_typeof(substring(`varchar`,`uint2`,`uint2`)) from test_type_table;
select substring(`varchar`,`uint2`,`int4`), pg_typeof(substring(`varchar`,`uint2`,`int4`)) from test_type_table;
select substring(`varchar`,`uint2`,`uint4`), pg_typeof(substring(`varchar`,`uint2`,`uint4`)) from test_type_table;
select substring(`varchar`,`uint2`,`int8`), pg_typeof(substring(`varchar`,`uint2`,`int8`)) from test_type_table;
select substring(`varchar`,`uint2`,`uint8`), pg_typeof(substring(`varchar`,`uint2`,`uint8`)) from test_type_table;
select substring(`varchar`,`uint2`,`float4`), pg_typeof(substring(`varchar`,`uint2`,`float4`)) from test_type_table;
select substring(`varchar`,`uint2`,`float8`), pg_typeof(substring(`varchar`,`uint2`,`float8`)) from test_type_table;
select substring(`varchar`,`uint2`,`numeric`), pg_typeof(substring(`varchar`,`uint2`,`numeric`)) from test_type_table;
select substring(`varchar`,`uint2`,`null`), pg_typeof(substring(`varchar`,`uint2`,`null`)) from test_type_table;
select substring(`varchar`,`int4`,`int1`), pg_typeof(substring(`varchar`,`int4`,`int1`)) from test_type_table;
select substring(`varchar`,`int4`,`uint1`), pg_typeof(substring(`varchar`,`int4`,`uint1`)) from test_type_table;
select substring(`varchar`,`int4`,`int2`), pg_typeof(substring(`varchar`,`int4`,`int2`)) from test_type_table;
select substring(`varchar`,`int4`,`uint2`), pg_typeof(substring(`varchar`,`int4`,`uint2`)) from test_type_table;
select substring(`varchar`,`int4`,`int4`), pg_typeof(substring(`varchar`,`int4`,`int4`)) from test_type_table;
select substring(`varchar`,`int4`,`uint4`), pg_typeof(substring(`varchar`,`int4`,`uint4`)) from test_type_table;
select substring(`varchar`,`int4`,`int8`), pg_typeof(substring(`varchar`,`int4`,`int8`)) from test_type_table;
select substring(`varchar`,`int4`,`uint8`), pg_typeof(substring(`varchar`,`int4`,`uint8`)) from test_type_table;
select substring(`varchar`,`int4`,`float4`), pg_typeof(substring(`varchar`,`int4`,`float4`)) from test_type_table;
select substring(`varchar`,`int4`,`float8`), pg_typeof(substring(`varchar`,`int4`,`float8`)) from test_type_table;
select substring(`varchar`,`int4`,`numeric`), pg_typeof(substring(`varchar`,`int4`,`numeric`)) from test_type_table;
select substring(`varchar`,`int4`,`null`), pg_typeof(substring(`varchar`,`int4`,`null`)) from test_type_table;
select substring(`varchar`,`uint4`,`int1`), pg_typeof(substring(`varchar`,`uint4`,`int1`)) from test_type_table;
select substring(`varchar`,`uint4`,`uint1`), pg_typeof(substring(`varchar`,`uint4`,`uint1`)) from test_type_table;
select substring(`varchar`,`uint4`,`int2`), pg_typeof(substring(`varchar`,`uint4`,`int2`)) from test_type_table;
select substring(`varchar`,`uint4`,`uint2`), pg_typeof(substring(`varchar`,`uint4`,`uint2`)) from test_type_table;
select substring(`varchar`,`uint4`,`int4`), pg_typeof(substring(`varchar`,`uint4`,`int4`)) from test_type_table;
select substring(`varchar`,`uint4`,`uint4`), pg_typeof(substring(`varchar`,`uint4`,`uint4`)) from test_type_table;
select substring(`varchar`,`uint4`,`int8`), pg_typeof(substring(`varchar`,`uint4`,`int8`)) from test_type_table;
select substring(`varchar`,`uint4`,`uint8`), pg_typeof(substring(`varchar`,`uint4`,`uint8`)) from test_type_table;
select substring(`varchar`,`uint4`,`float4`), pg_typeof(substring(`varchar`,`uint4`,`float4`)) from test_type_table;
select substring(`varchar`,`uint4`,`float8`), pg_typeof(substring(`varchar`,`uint4`,`float8`)) from test_type_table;
select substring(`varchar`,`uint4`,`numeric`), pg_typeof(substring(`varchar`,`uint4`,`numeric`)) from test_type_table;
select substring(`varchar`,`uint4`,`null`), pg_typeof(substring(`varchar`,`uint4`,`null`)) from test_type_table;
select substring(`varchar`,`int8`,`int1`), pg_typeof(substring(`varchar`,`int8`,`int1`)) from test_type_table;
select substring(`varchar`,`int8`,`uint1`), pg_typeof(substring(`varchar`,`int8`,`uint1`)) from test_type_table;
select substring(`varchar`,`int8`,`int2`), pg_typeof(substring(`varchar`,`int8`,`int2`)) from test_type_table;
select substring(`varchar`,`int8`,`uint2`), pg_typeof(substring(`varchar`,`int8`,`uint2`)) from test_type_table;
select substring(`varchar`,`int8`,`int4`), pg_typeof(substring(`varchar`,`int8`,`int4`)) from test_type_table;
select substring(`varchar`,`int8`,`uint4`), pg_typeof(substring(`varchar`,`int8`,`uint4`)) from test_type_table;
select substring(`varchar`,`int8`,`int8`), pg_typeof(substring(`varchar`,`int8`,`int8`)) from test_type_table;
select substring(`varchar`,`int8`,`uint8`), pg_typeof(substring(`varchar`,`int8`,`uint8`)) from test_type_table;
select substring(`varchar`,`int8`,`float4`), pg_typeof(substring(`varchar`,`int8`,`float4`)) from test_type_table;
select substring(`varchar`,`int8`,`float8`), pg_typeof(substring(`varchar`,`int8`,`float8`)) from test_type_table;
select substring(`varchar`,`int8`,`numeric`), pg_typeof(substring(`varchar`,`int8`,`numeric`)) from test_type_table;
select substring(`varchar`,`int8`,`null`), pg_typeof(substring(`varchar`,`int8`,`null`)) from test_type_table;
select substring(`varchar`,`uint8`,`int1`), pg_typeof(substring(`varchar`,`uint8`,`int1`)) from test_type_table;
select substring(`varchar`,`uint8`,`uint1`), pg_typeof(substring(`varchar`,`uint8`,`uint1`)) from test_type_table;
select substring(`varchar`,`uint8`,`int2`), pg_typeof(substring(`varchar`,`uint8`,`int2`)) from test_type_table;
select substring(`varchar`,`uint8`,`uint2`), pg_typeof(substring(`varchar`,`uint8`,`uint2`)) from test_type_table;
select substring(`varchar`,`uint8`,`int4`), pg_typeof(substring(`varchar`,`uint8`,`int4`)) from test_type_table;
select substring(`varchar`,`uint8`,`uint4`), pg_typeof(substring(`varchar`,`uint8`,`uint4`)) from test_type_table;
select substring(`varchar`,`uint8`,`int8`), pg_typeof(substring(`varchar`,`uint8`,`int8`)) from test_type_table;
select substring(`varchar`,`uint8`,`uint8`), pg_typeof(substring(`varchar`,`uint8`,`uint8`)) from test_type_table;
select substring(`varchar`,`uint8`,`float4`), pg_typeof(substring(`varchar`,`uint8`,`float4`)) from test_type_table;
select substring(`varchar`,`uint8`,`float8`), pg_typeof(substring(`varchar`,`uint8`,`float8`)) from test_type_table;
select substring(`varchar`,`uint8`,`numeric`), pg_typeof(substring(`varchar`,`uint8`,`numeric`)) from test_type_table;
select substring(`varchar`,`uint8`,`null`), pg_typeof(substring(`varchar`,`uint8`,`null`)) from test_type_table;
select substring(`varchar`,`float4`,`int1`), pg_typeof(substring(`varchar`,`float4`,`int1`)) from test_type_table;
select substring(`varchar`,`float4`,`uint1`), pg_typeof(substring(`varchar`,`float4`,`uint1`)) from test_type_table;
select substring(`varchar`,`float4`,`int2`), pg_typeof(substring(`varchar`,`float4`,`int2`)) from test_type_table;
select substring(`varchar`,`float4`,`uint2`), pg_typeof(substring(`varchar`,`float4`,`uint2`)) from test_type_table;
select substring(`varchar`,`float4`,`int4`), pg_typeof(substring(`varchar`,`float4`,`int4`)) from test_type_table;
select substring(`varchar`,`float4`,`uint4`), pg_typeof(substring(`varchar`,`float4`,`uint4`)) from test_type_table;
select substring(`varchar`,`float4`,`int8`), pg_typeof(substring(`varchar`,`float4`,`int8`)) from test_type_table;
select substring(`varchar`,`float4`,`uint8`), pg_typeof(substring(`varchar`,`float4`,`uint8`)) from test_type_table;
select substring(`varchar`,`float4`,`float4`), pg_typeof(substring(`varchar`,`float4`,`float4`)) from test_type_table;
select substring(`varchar`,`float4`,`float8`), pg_typeof(substring(`varchar`,`float4`,`float8`)) from test_type_table;
select substring(`varchar`,`float4`,`numeric`), pg_typeof(substring(`varchar`,`float4`,`numeric`)) from test_type_table;
select substring(`varchar`,`float4`,`null`), pg_typeof(substring(`varchar`,`float4`,`null`)) from test_type_table;
select substring(`varchar`,`float8`,`int1`), pg_typeof(substring(`varchar`,`float8`,`int1`)) from test_type_table;
select substring(`varchar`,`float8`,`uint1`), pg_typeof(substring(`varchar`,`float8`,`uint1`)) from test_type_table;
select substring(`varchar`,`float8`,`int2`), pg_typeof(substring(`varchar`,`float8`,`int2`)) from test_type_table;
select substring(`varchar`,`float8`,`uint2`), pg_typeof(substring(`varchar`,`float8`,`uint2`)) from test_type_table;
select substring(`varchar`,`float8`,`int4`), pg_typeof(substring(`varchar`,`float8`,`int4`)) from test_type_table;
select substring(`varchar`,`float8`,`uint4`), pg_typeof(substring(`varchar`,`float8`,`uint4`)) from test_type_table;
select substring(`varchar`,`float8`,`int8`), pg_typeof(substring(`varchar`,`float8`,`int8`)) from test_type_table;
select substring(`varchar`,`float8`,`uint8`), pg_typeof(substring(`varchar`,`float8`,`uint8`)) from test_type_table;
select substring(`varchar`,`float8`,`float4`), pg_typeof(substring(`varchar`,`float8`,`float4`)) from test_type_table;
select substring(`varchar`,`float8`,`float8`), pg_typeof(substring(`varchar`,`float8`,`float8`)) from test_type_table;
select substring(`varchar`,`float8`,`numeric`), pg_typeof(substring(`varchar`,`float8`,`numeric`)) from test_type_table;
select substring(`varchar`,`float8`,`null`), pg_typeof(substring(`varchar`,`float8`,`null`)) from test_type_table;
select substring(`varchar`,`numeric`,`int1`), pg_typeof(substring(`varchar`,`numeric`,`int1`)) from test_type_table;
select substring(`varchar`,`numeric`,`uint1`), pg_typeof(substring(`varchar`,`numeric`,`uint1`)) from test_type_table;
select substring(`varchar`,`numeric`,`int2`), pg_typeof(substring(`varchar`,`numeric`,`int2`)) from test_type_table;
select substring(`varchar`,`numeric`,`uint2`), pg_typeof(substring(`varchar`,`numeric`,`uint2`)) from test_type_table;
select substring(`varchar`,`numeric`,`int4`), pg_typeof(substring(`varchar`,`numeric`,`int4`)) from test_type_table;
select substring(`varchar`,`numeric`,`uint4`), pg_typeof(substring(`varchar`,`numeric`,`uint4`)) from test_type_table;
select substring(`varchar`,`numeric`,`int8`), pg_typeof(substring(`varchar`,`numeric`,`int8`)) from test_type_table;
select substring(`varchar`,`numeric`,`uint8`), pg_typeof(substring(`varchar`,`numeric`,`uint8`)) from test_type_table;
select substring(`varchar`,`numeric`,`float4`), pg_typeof(substring(`varchar`,`numeric`,`float4`)) from test_type_table;
select substring(`varchar`,`numeric`,`float8`), pg_typeof(substring(`varchar`,`numeric`,`float8`)) from test_type_table;
select substring(`varchar`,`numeric`,`numeric`), pg_typeof(substring(`varchar`,`numeric`,`numeric`)) from test_type_table;
select substring(`varchar`,`numeric`,`null`), pg_typeof(substring(`varchar`,`numeric`,`null`)) from test_type_table;
select substring(`varchar`,`null`,`int1`), pg_typeof(substring(`varchar`,`null`,`int1`)) from test_type_table;
select substring(`varchar`,`null`,`uint1`), pg_typeof(substring(`varchar`,`null`,`uint1`)) from test_type_table;
select substring(`varchar`,`null`,`int2`), pg_typeof(substring(`varchar`,`null`,`int2`)) from test_type_table;
select substring(`varchar`,`null`,`uint2`), pg_typeof(substring(`varchar`,`null`,`uint2`)) from test_type_table;
select substring(`varchar`,`null`,`int4`), pg_typeof(substring(`varchar`,`null`,`int4`)) from test_type_table;
select substring(`varchar`,`null`,`uint4`), pg_typeof(substring(`varchar`,`null`,`uint4`)) from test_type_table;
select substring(`varchar`,`null`,`int8`), pg_typeof(substring(`varchar`,`null`,`int8`)) from test_type_table;
select substring(`varchar`,`null`,`uint8`), pg_typeof(substring(`varchar`,`null`,`uint8`)) from test_type_table;
select substring(`varchar`,`null`,`float4`), pg_typeof(substring(`varchar`,`null`,`float4`)) from test_type_table;
select substring(`varchar`,`null`,`float8`), pg_typeof(substring(`varchar`,`null`,`float8`)) from test_type_table;
select substring(`varchar`,`null`,`numeric`), pg_typeof(substring(`varchar`,`null`,`numeric`)) from test_type_table;
select substring(`varchar`,`null`,`null`), pg_typeof(substring(`varchar`,`null`,`null`)) from test_type_table;
select substring(`text`,`int1`,`int1`), pg_typeof(substring(`text`,`int1`,`int1`)) from test_type_table;
select substring(`text`,`int1`,`uint1`), pg_typeof(substring(`text`,`int1`,`uint1`)) from test_type_table;
select substring(`text`,`int1`,`int2`), pg_typeof(substring(`text`,`int1`,`int2`)) from test_type_table;
select substring(`text`,`int1`,`uint2`), pg_typeof(substring(`text`,`int1`,`uint2`)) from test_type_table;
select substring(`text`,`int1`,`int4`), pg_typeof(substring(`text`,`int1`,`int4`)) from test_type_table;
select substring(`text`,`int1`,`uint4`), pg_typeof(substring(`text`,`int1`,`uint4`)) from test_type_table;
select substring(`text`,`int1`,`int8`), pg_typeof(substring(`text`,`int1`,`int8`)) from test_type_table;
select substring(`text`,`int1`,`uint8`), pg_typeof(substring(`text`,`int1`,`uint8`)) from test_type_table;
select substring(`text`,`int1`,`float4`), pg_typeof(substring(`text`,`int1`,`float4`)) from test_type_table;
select substring(`text`,`int1`,`float8`), pg_typeof(substring(`text`,`int1`,`float8`)) from test_type_table;
select substring(`text`,`int1`,`numeric`), pg_typeof(substring(`text`,`int1`,`numeric`)) from test_type_table;
select substring(`text`,`int1`,`null`), pg_typeof(substring(`text`,`int1`,`null`)) from test_type_table;
select substring(`text`,`uint1`,`int1`), pg_typeof(substring(`text`,`uint1`,`int1`)) from test_type_table;
select substring(`text`,`uint1`,`uint1`), pg_typeof(substring(`text`,`uint1`,`uint1`)) from test_type_table;
select substring(`text`,`uint1`,`int2`), pg_typeof(substring(`text`,`uint1`,`int2`)) from test_type_table;
select substring(`text`,`uint1`,`uint2`), pg_typeof(substring(`text`,`uint1`,`uint2`)) from test_type_table;
select substring(`text`,`uint1`,`int4`), pg_typeof(substring(`text`,`uint1`,`int4`)) from test_type_table;
select substring(`text`,`uint1`,`uint4`), pg_typeof(substring(`text`,`uint1`,`uint4`)) from test_type_table;
select substring(`text`,`uint1`,`int8`), pg_typeof(substring(`text`,`uint1`,`int8`)) from test_type_table;
select substring(`text`,`uint1`,`uint8`), pg_typeof(substring(`text`,`uint1`,`uint8`)) from test_type_table;
select substring(`text`,`uint1`,`float4`), pg_typeof(substring(`text`,`uint1`,`float4`)) from test_type_table;
select substring(`text`,`uint1`,`float8`), pg_typeof(substring(`text`,`uint1`,`float8`)) from test_type_table;
select substring(`text`,`uint1`,`numeric`), pg_typeof(substring(`text`,`uint1`,`numeric`)) from test_type_table;
select substring(`text`,`uint1`,`null`), pg_typeof(substring(`text`,`uint1`,`null`)) from test_type_table;
select substring(`text`,`int2`,`int1`), pg_typeof(substring(`text`,`int2`,`int1`)) from test_type_table;
select substring(`text`,`int2`,`uint1`), pg_typeof(substring(`text`,`int2`,`uint1`)) from test_type_table;
select substring(`text`,`int2`,`int2`), pg_typeof(substring(`text`,`int2`,`int2`)) from test_type_table;
select substring(`text`,`int2`,`uint2`), pg_typeof(substring(`text`,`int2`,`uint2`)) from test_type_table;
select substring(`text`,`int2`,`int4`), pg_typeof(substring(`text`,`int2`,`int4`)) from test_type_table;
select substring(`text`,`int2`,`uint4`), pg_typeof(substring(`text`,`int2`,`uint4`)) from test_type_table;
select substring(`text`,`int2`,`int8`), pg_typeof(substring(`text`,`int2`,`int8`)) from test_type_table;
select substring(`text`,`int2`,`uint8`), pg_typeof(substring(`text`,`int2`,`uint8`)) from test_type_table;
select substring(`text`,`int2`,`float4`), pg_typeof(substring(`text`,`int2`,`float4`)) from test_type_table;
select substring(`text`,`int2`,`float8`), pg_typeof(substring(`text`,`int2`,`float8`)) from test_type_table;
select substring(`text`,`int2`,`numeric`), pg_typeof(substring(`text`,`int2`,`numeric`)) from test_type_table;
select substring(`text`,`int2`,`null`), pg_typeof(substring(`text`,`int2`,`null`)) from test_type_table;
select substring(`text`,`uint2`,`int1`), pg_typeof(substring(`text`,`uint2`,`int1`)) from test_type_table;
select substring(`text`,`uint2`,`uint1`), pg_typeof(substring(`text`,`uint2`,`uint1`)) from test_type_table;
select substring(`text`,`uint2`,`int2`), pg_typeof(substring(`text`,`uint2`,`int2`)) from test_type_table;
select substring(`text`,`uint2`,`uint2`), pg_typeof(substring(`text`,`uint2`,`uint2`)) from test_type_table;
select substring(`text`,`uint2`,`int4`), pg_typeof(substring(`text`,`uint2`,`int4`)) from test_type_table;
select substring(`text`,`uint2`,`uint4`), pg_typeof(substring(`text`,`uint2`,`uint4`)) from test_type_table;
select substring(`text`,`uint2`,`int8`), pg_typeof(substring(`text`,`uint2`,`int8`)) from test_type_table;
select substring(`text`,`uint2`,`uint8`), pg_typeof(substring(`text`,`uint2`,`uint8`)) from test_type_table;
select substring(`text`,`uint2`,`float4`), pg_typeof(substring(`text`,`uint2`,`float4`)) from test_type_table;
select substring(`text`,`uint2`,`float8`), pg_typeof(substring(`text`,`uint2`,`float8`)) from test_type_table;
select substring(`text`,`uint2`,`numeric`), pg_typeof(substring(`text`,`uint2`,`numeric`)) from test_type_table;
select substring(`text`,`uint2`,`null`), pg_typeof(substring(`text`,`uint2`,`null`)) from test_type_table;
select substring(`text`,`int4`,`int1`), pg_typeof(substring(`text`,`int4`,`int1`)) from test_type_table;
select substring(`text`,`int4`,`uint1`), pg_typeof(substring(`text`,`int4`,`uint1`)) from test_type_table;
select substring(`text`,`int4`,`int2`), pg_typeof(substring(`text`,`int4`,`int2`)) from test_type_table;
select substring(`text`,`int4`,`uint2`), pg_typeof(substring(`text`,`int4`,`uint2`)) from test_type_table;
select substring(`text`,`int4`,`int4`), pg_typeof(substring(`text`,`int4`,`int4`)) from test_type_table;
select substring(`text`,`int4`,`uint4`), pg_typeof(substring(`text`,`int4`,`uint4`)) from test_type_table;
select substring(`text`,`int4`,`int8`), pg_typeof(substring(`text`,`int4`,`int8`)) from test_type_table;
select substring(`text`,`int4`,`uint8`), pg_typeof(substring(`text`,`int4`,`uint8`)) from test_type_table;
select substring(`text`,`int4`,`float4`), pg_typeof(substring(`text`,`int4`,`float4`)) from test_type_table;
select substring(`text`,`int4`,`float8`), pg_typeof(substring(`text`,`int4`,`float8`)) from test_type_table;
select substring(`text`,`int4`,`numeric`), pg_typeof(substring(`text`,`int4`,`numeric`)) from test_type_table;
select substring(`text`,`int4`,`null`), pg_typeof(substring(`text`,`int4`,`null`)) from test_type_table;
select substring(`text`,`uint4`,`int1`), pg_typeof(substring(`text`,`uint4`,`int1`)) from test_type_table;
select substring(`text`,`uint4`,`uint1`), pg_typeof(substring(`text`,`uint4`,`uint1`)) from test_type_table;
select substring(`text`,`uint4`,`int2`), pg_typeof(substring(`text`,`uint4`,`int2`)) from test_type_table;
select substring(`text`,`uint4`,`uint2`), pg_typeof(substring(`text`,`uint4`,`uint2`)) from test_type_table;
select substring(`text`,`uint4`,`int4`), pg_typeof(substring(`text`,`uint4`,`int4`)) from test_type_table;
select substring(`text`,`uint4`,`uint4`), pg_typeof(substring(`text`,`uint4`,`uint4`)) from test_type_table;
select substring(`text`,`uint4`,`int8`), pg_typeof(substring(`text`,`uint4`,`int8`)) from test_type_table;
select substring(`text`,`uint4`,`uint8`), pg_typeof(substring(`text`,`uint4`,`uint8`)) from test_type_table;
select substring(`text`,`uint4`,`float4`), pg_typeof(substring(`text`,`uint4`,`float4`)) from test_type_table;
select substring(`text`,`uint4`,`float8`), pg_typeof(substring(`text`,`uint4`,`float8`)) from test_type_table;
select substring(`text`,`uint4`,`numeric`), pg_typeof(substring(`text`,`uint4`,`numeric`)) from test_type_table;
select substring(`text`,`uint4`,`null`), pg_typeof(substring(`text`,`uint4`,`null`)) from test_type_table;
select substring(`text`,`int8`,`int1`), pg_typeof(substring(`text`,`int8`,`int1`)) from test_type_table;
select substring(`text`,`int8`,`uint1`), pg_typeof(substring(`text`,`int8`,`uint1`)) from test_type_table;
select substring(`text`,`int8`,`int2`), pg_typeof(substring(`text`,`int8`,`int2`)) from test_type_table;
select substring(`text`,`int8`,`uint2`), pg_typeof(substring(`text`,`int8`,`uint2`)) from test_type_table;
select substring(`text`,`int8`,`int4`), pg_typeof(substring(`text`,`int8`,`int4`)) from test_type_table;
select substring(`text`,`int8`,`uint4`), pg_typeof(substring(`text`,`int8`,`uint4`)) from test_type_table;
select substring(`text`,`int8`,`int8`), pg_typeof(substring(`text`,`int8`,`int8`)) from test_type_table;
select substring(`text`,`int8`,`uint8`), pg_typeof(substring(`text`,`int8`,`uint8`)) from test_type_table;
select substring(`text`,`int8`,`float4`), pg_typeof(substring(`text`,`int8`,`float4`)) from test_type_table;
select substring(`text`,`int8`,`float8`), pg_typeof(substring(`text`,`int8`,`float8`)) from test_type_table;
select substring(`text`,`int8`,`numeric`), pg_typeof(substring(`text`,`int8`,`numeric`)) from test_type_table;
select substring(`text`,`int8`,`null`), pg_typeof(substring(`text`,`int8`,`null`)) from test_type_table;
select substring(`text`,`uint8`,`int1`), pg_typeof(substring(`text`,`uint8`,`int1`)) from test_type_table;
select substring(`text`,`uint8`,`uint1`), pg_typeof(substring(`text`,`uint8`,`uint1`)) from test_type_table;
select substring(`text`,`uint8`,`int2`), pg_typeof(substring(`text`,`uint8`,`int2`)) from test_type_table;
select substring(`text`,`uint8`,`uint2`), pg_typeof(substring(`text`,`uint8`,`uint2`)) from test_type_table;
select substring(`text`,`uint8`,`int4`), pg_typeof(substring(`text`,`uint8`,`int4`)) from test_type_table;
select substring(`text`,`uint8`,`uint4`), pg_typeof(substring(`text`,`uint8`,`uint4`)) from test_type_table;
select substring(`text`,`uint8`,`int8`), pg_typeof(substring(`text`,`uint8`,`int8`)) from test_type_table;
select substring(`text`,`uint8`,`uint8`), pg_typeof(substring(`text`,`uint8`,`uint8`)) from test_type_table;
select substring(`text`,`uint8`,`float4`), pg_typeof(substring(`text`,`uint8`,`float4`)) from test_type_table;
select substring(`text`,`uint8`,`float8`), pg_typeof(substring(`text`,`uint8`,`float8`)) from test_type_table;
select substring(`text`,`uint8`,`numeric`), pg_typeof(substring(`text`,`uint8`,`numeric`)) from test_type_table;
select substring(`text`,`uint8`,`null`), pg_typeof(substring(`text`,`uint8`,`null`)) from test_type_table;
select substring(`text`,`float4`,`int1`), pg_typeof(substring(`text`,`float4`,`int1`)) from test_type_table;
select substring(`text`,`float4`,`uint1`), pg_typeof(substring(`text`,`float4`,`uint1`)) from test_type_table;
select substring(`text`,`float4`,`int2`), pg_typeof(substring(`text`,`float4`,`int2`)) from test_type_table;
select substring(`text`,`float4`,`uint2`), pg_typeof(substring(`text`,`float4`,`uint2`)) from test_type_table;
select substring(`text`,`float4`,`int4`), pg_typeof(substring(`text`,`float4`,`int4`)) from test_type_table;
select substring(`text`,`float4`,`uint4`), pg_typeof(substring(`text`,`float4`,`uint4`)) from test_type_table;
select substring(`text`,`float4`,`int8`), pg_typeof(substring(`text`,`float4`,`int8`)) from test_type_table;
select substring(`text`,`float4`,`uint8`), pg_typeof(substring(`text`,`float4`,`uint8`)) from test_type_table;
select substring(`text`,`float4`,`float4`), pg_typeof(substring(`text`,`float4`,`float4`)) from test_type_table;
select substring(`text`,`float4`,`float8`), pg_typeof(substring(`text`,`float4`,`float8`)) from test_type_table;
select substring(`text`,`float4`,`numeric`), pg_typeof(substring(`text`,`float4`,`numeric`)) from test_type_table;
select substring(`text`,`float4`,`null`), pg_typeof(substring(`text`,`float4`,`null`)) from test_type_table;
select substring(`text`,`float8`,`int1`), pg_typeof(substring(`text`,`float8`,`int1`)) from test_type_table;
select substring(`text`,`float8`,`uint1`), pg_typeof(substring(`text`,`float8`,`uint1`)) from test_type_table;
select substring(`text`,`float8`,`int2`), pg_typeof(substring(`text`,`float8`,`int2`)) from test_type_table;
select substring(`text`,`float8`,`uint2`), pg_typeof(substring(`text`,`float8`,`uint2`)) from test_type_table;
select substring(`text`,`float8`,`int4`), pg_typeof(substring(`text`,`float8`,`int4`)) from test_type_table;
select substring(`text`,`float8`,`uint4`), pg_typeof(substring(`text`,`float8`,`uint4`)) from test_type_table;
select substring(`text`,`float8`,`int8`), pg_typeof(substring(`text`,`float8`,`int8`)) from test_type_table;
select substring(`text`,`float8`,`uint8`), pg_typeof(substring(`text`,`float8`,`uint8`)) from test_type_table;
select substring(`text`,`float8`,`float4`), pg_typeof(substring(`text`,`float8`,`float4`)) from test_type_table;
select substring(`text`,`float8`,`float8`), pg_typeof(substring(`text`,`float8`,`float8`)) from test_type_table;
select substring(`text`,`float8`,`numeric`), pg_typeof(substring(`text`,`float8`,`numeric`)) from test_type_table;
select substring(`text`,`float8`,`null`), pg_typeof(substring(`text`,`float8`,`null`)) from test_type_table;
select substring(`text`,`numeric`,`int1`), pg_typeof(substring(`text`,`numeric`,`int1`)) from test_type_table;
select substring(`text`,`numeric`,`uint1`), pg_typeof(substring(`text`,`numeric`,`uint1`)) from test_type_table;
select substring(`text`,`numeric`,`int2`), pg_typeof(substring(`text`,`numeric`,`int2`)) from test_type_table;
select substring(`text`,`numeric`,`uint2`), pg_typeof(substring(`text`,`numeric`,`uint2`)) from test_type_table;
select substring(`text`,`numeric`,`int4`), pg_typeof(substring(`text`,`numeric`,`int4`)) from test_type_table;
select substring(`text`,`numeric`,`uint4`), pg_typeof(substring(`text`,`numeric`,`uint4`)) from test_type_table;
select substring(`text`,`numeric`,`int8`), pg_typeof(substring(`text`,`numeric`,`int8`)) from test_type_table;
select substring(`text`,`numeric`,`uint8`), pg_typeof(substring(`text`,`numeric`,`uint8`)) from test_type_table;
select substring(`text`,`numeric`,`float4`), pg_typeof(substring(`text`,`numeric`,`float4`)) from test_type_table;
select substring(`text`,`numeric`,`float8`), pg_typeof(substring(`text`,`numeric`,`float8`)) from test_type_table;
select substring(`text`,`numeric`,`numeric`), pg_typeof(substring(`text`,`numeric`,`numeric`)) from test_type_table;
select substring(`text`,`numeric`,`null`), pg_typeof(substring(`text`,`numeric`,`null`)) from test_type_table;
select substring(`text`,`null`,`int1`), pg_typeof(substring(`text`,`null`,`int1`)) from test_type_table;
select substring(`text`,`null`,`uint1`), pg_typeof(substring(`text`,`null`,`uint1`)) from test_type_table;
select substring(`text`,`null`,`int2`), pg_typeof(substring(`text`,`null`,`int2`)) from test_type_table;
select substring(`text`,`null`,`uint2`), pg_typeof(substring(`text`,`null`,`uint2`)) from test_type_table;
select substring(`text`,`null`,`int4`), pg_typeof(substring(`text`,`null`,`int4`)) from test_type_table;
select substring(`text`,`null`,`uint4`), pg_typeof(substring(`text`,`null`,`uint4`)) from test_type_table;
select substring(`text`,`null`,`int8`), pg_typeof(substring(`text`,`null`,`int8`)) from test_type_table;
select substring(`text`,`null`,`uint8`), pg_typeof(substring(`text`,`null`,`uint8`)) from test_type_table;
select substring(`text`,`null`,`float4`), pg_typeof(substring(`text`,`null`,`float4`)) from test_type_table;
select substring(`text`,`null`,`float8`), pg_typeof(substring(`text`,`null`,`float8`)) from test_type_table;
select substring(`text`,`null`,`numeric`), pg_typeof(substring(`text`,`null`,`numeric`)) from test_type_table;
select substring(`text`,`null`,`null`), pg_typeof(substring(`text`,`null`,`null`)) from test_type_table;
select substring(`null`,`int1`,`int1`), pg_typeof(substring(`null`,`int1`,`int1`)) from test_type_table;
select substring(`null`,`int1`,`uint1`), pg_typeof(substring(`null`,`int1`,`uint1`)) from test_type_table;
select substring(`null`,`int1`,`int2`), pg_typeof(substring(`null`,`int1`,`int2`)) from test_type_table;
select substring(`null`,`int1`,`uint2`), pg_typeof(substring(`null`,`int1`,`uint2`)) from test_type_table;
select substring(`null`,`int1`,`int4`), pg_typeof(substring(`null`,`int1`,`int4`)) from test_type_table;
select substring(`null`,`int1`,`uint4`), pg_typeof(substring(`null`,`int1`,`uint4`)) from test_type_table;
select substring(`null`,`int1`,`int8`), pg_typeof(substring(`null`,`int1`,`int8`)) from test_type_table;
select substring(`null`,`int1`,`uint8`), pg_typeof(substring(`null`,`int1`,`uint8`)) from test_type_table;
select substring(`null`,`int1`,`float4`), pg_typeof(substring(`null`,`int1`,`float4`)) from test_type_table;
select substring(`null`,`int1`,`float8`), pg_typeof(substring(`null`,`int1`,`float8`)) from test_type_table;
select substring(`null`,`int1`,`numeric`), pg_typeof(substring(`null`,`int1`,`numeric`)) from test_type_table;
select substring(`null`,`int1`,`null`), pg_typeof(substring(`null`,`int1`,`null`)) from test_type_table;
select substring(`null`,`uint1`,`int1`), pg_typeof(substring(`null`,`uint1`,`int1`)) from test_type_table;
select substring(`null`,`uint1`,`uint1`), pg_typeof(substring(`null`,`uint1`,`uint1`)) from test_type_table;
select substring(`null`,`uint1`,`int2`), pg_typeof(substring(`null`,`uint1`,`int2`)) from test_type_table;
select substring(`null`,`uint1`,`uint2`), pg_typeof(substring(`null`,`uint1`,`uint2`)) from test_type_table;
select substring(`null`,`uint1`,`int4`), pg_typeof(substring(`null`,`uint1`,`int4`)) from test_type_table;
select substring(`null`,`uint1`,`uint4`), pg_typeof(substring(`null`,`uint1`,`uint4`)) from test_type_table;
select substring(`null`,`uint1`,`int8`), pg_typeof(substring(`null`,`uint1`,`int8`)) from test_type_table;
select substring(`null`,`uint1`,`uint8`), pg_typeof(substring(`null`,`uint1`,`uint8`)) from test_type_table;
select substring(`null`,`uint1`,`float4`), pg_typeof(substring(`null`,`uint1`,`float4`)) from test_type_table;
select substring(`null`,`uint1`,`float8`), pg_typeof(substring(`null`,`uint1`,`float8`)) from test_type_table;
select substring(`null`,`uint1`,`numeric`), pg_typeof(substring(`null`,`uint1`,`numeric`)) from test_type_table;
select substring(`null`,`uint1`,`null`), pg_typeof(substring(`null`,`uint1`,`null`)) from test_type_table;
select substring(`null`,`int2`,`int1`), pg_typeof(substring(`null`,`int2`,`int1`)) from test_type_table;
select substring(`null`,`int2`,`uint1`), pg_typeof(substring(`null`,`int2`,`uint1`)) from test_type_table;
select substring(`null`,`int2`,`int2`), pg_typeof(substring(`null`,`int2`,`int2`)) from test_type_table;
select substring(`null`,`int2`,`uint2`), pg_typeof(substring(`null`,`int2`,`uint2`)) from test_type_table;
select substring(`null`,`int2`,`int4`), pg_typeof(substring(`null`,`int2`,`int4`)) from test_type_table;
select substring(`null`,`int2`,`uint4`), pg_typeof(substring(`null`,`int2`,`uint4`)) from test_type_table;
select substring(`null`,`int2`,`int8`), pg_typeof(substring(`null`,`int2`,`int8`)) from test_type_table;
select substring(`null`,`int2`,`uint8`), pg_typeof(substring(`null`,`int2`,`uint8`)) from test_type_table;
select substring(`null`,`int2`,`float4`), pg_typeof(substring(`null`,`int2`,`float4`)) from test_type_table;
select substring(`null`,`int2`,`float8`), pg_typeof(substring(`null`,`int2`,`float8`)) from test_type_table;
select substring(`null`,`int2`,`numeric`), pg_typeof(substring(`null`,`int2`,`numeric`)) from test_type_table;
select substring(`null`,`int2`,`null`), pg_typeof(substring(`null`,`int2`,`null`)) from test_type_table;
select substring(`null`,`uint2`,`int1`), pg_typeof(substring(`null`,`uint2`,`int1`)) from test_type_table;
select substring(`null`,`uint2`,`uint1`), pg_typeof(substring(`null`,`uint2`,`uint1`)) from test_type_table;
select substring(`null`,`uint2`,`int2`), pg_typeof(substring(`null`,`uint2`,`int2`)) from test_type_table;
select substring(`null`,`uint2`,`uint2`), pg_typeof(substring(`null`,`uint2`,`uint2`)) from test_type_table;
select substring(`null`,`uint2`,`int4`), pg_typeof(substring(`null`,`uint2`,`int4`)) from test_type_table;
select substring(`null`,`uint2`,`uint4`), pg_typeof(substring(`null`,`uint2`,`uint4`)) from test_type_table;
select substring(`null`,`uint2`,`int8`), pg_typeof(substring(`null`,`uint2`,`int8`)) from test_type_table;
select substring(`null`,`uint2`,`uint8`), pg_typeof(substring(`null`,`uint2`,`uint8`)) from test_type_table;
select substring(`null`,`uint2`,`float4`), pg_typeof(substring(`null`,`uint2`,`float4`)) from test_type_table;
select substring(`null`,`uint2`,`float8`), pg_typeof(substring(`null`,`uint2`,`float8`)) from test_type_table;
select substring(`null`,`uint2`,`numeric`), pg_typeof(substring(`null`,`uint2`,`numeric`)) from test_type_table;
select substring(`null`,`uint2`,`null`), pg_typeof(substring(`null`,`uint2`,`null`)) from test_type_table;
select substring(`null`,`int4`,`int1`), pg_typeof(substring(`null`,`int4`,`int1`)) from test_type_table;
select substring(`null`,`int4`,`uint1`), pg_typeof(substring(`null`,`int4`,`uint1`)) from test_type_table;
select substring(`null`,`int4`,`int2`), pg_typeof(substring(`null`,`int4`,`int2`)) from test_type_table;
select substring(`null`,`int4`,`uint2`), pg_typeof(substring(`null`,`int4`,`uint2`)) from test_type_table;
select substring(`null`,`int4`,`int4`), pg_typeof(substring(`null`,`int4`,`int4`)) from test_type_table;
select substring(`null`,`int4`,`uint4`), pg_typeof(substring(`null`,`int4`,`uint4`)) from test_type_table;
select substring(`null`,`int4`,`int8`), pg_typeof(substring(`null`,`int4`,`int8`)) from test_type_table;
select substring(`null`,`int4`,`uint8`), pg_typeof(substring(`null`,`int4`,`uint8`)) from test_type_table;
select substring(`null`,`int4`,`float4`), pg_typeof(substring(`null`,`int4`,`float4`)) from test_type_table;
select substring(`null`,`int4`,`float8`), pg_typeof(substring(`null`,`int4`,`float8`)) from test_type_table;
select substring(`null`,`int4`,`numeric`), pg_typeof(substring(`null`,`int4`,`numeric`)) from test_type_table;
select substring(`null`,`int4`,`null`), pg_typeof(substring(`null`,`int4`,`null`)) from test_type_table;
select substring(`null`,`uint4`,`int1`), pg_typeof(substring(`null`,`uint4`,`int1`)) from test_type_table;
select substring(`null`,`uint4`,`uint1`), pg_typeof(substring(`null`,`uint4`,`uint1`)) from test_type_table;
select substring(`null`,`uint4`,`int2`), pg_typeof(substring(`null`,`uint4`,`int2`)) from test_type_table;
select substring(`null`,`uint4`,`uint2`), pg_typeof(substring(`null`,`uint4`,`uint2`)) from test_type_table;
select substring(`null`,`uint4`,`int4`), pg_typeof(substring(`null`,`uint4`,`int4`)) from test_type_table;
select substring(`null`,`uint4`,`uint4`), pg_typeof(substring(`null`,`uint4`,`uint4`)) from test_type_table;
select substring(`null`,`uint4`,`int8`), pg_typeof(substring(`null`,`uint4`,`int8`)) from test_type_table;
select substring(`null`,`uint4`,`uint8`), pg_typeof(substring(`null`,`uint4`,`uint8`)) from test_type_table;
select substring(`null`,`uint4`,`float4`), pg_typeof(substring(`null`,`uint4`,`float4`)) from test_type_table;
select substring(`null`,`uint4`,`float8`), pg_typeof(substring(`null`,`uint4`,`float8`)) from test_type_table;
select substring(`null`,`uint4`,`numeric`), pg_typeof(substring(`null`,`uint4`,`numeric`)) from test_type_table;
select substring(`null`,`uint4`,`null`), pg_typeof(substring(`null`,`uint4`,`null`)) from test_type_table;
select substring(`null`,`int8`,`int1`), pg_typeof(substring(`null`,`int8`,`int1`)) from test_type_table;
select substring(`null`,`int8`,`uint1`), pg_typeof(substring(`null`,`int8`,`uint1`)) from test_type_table;
select substring(`null`,`int8`,`int2`), pg_typeof(substring(`null`,`int8`,`int2`)) from test_type_table;
select substring(`null`,`int8`,`uint2`), pg_typeof(substring(`null`,`int8`,`uint2`)) from test_type_table;
select substring(`null`,`int8`,`int4`), pg_typeof(substring(`null`,`int8`,`int4`)) from test_type_table;
select substring(`null`,`int8`,`uint4`), pg_typeof(substring(`null`,`int8`,`uint4`)) from test_type_table;
select substring(`null`,`int8`,`int8`), pg_typeof(substring(`null`,`int8`,`int8`)) from test_type_table;
select substring(`null`,`int8`,`uint8`), pg_typeof(substring(`null`,`int8`,`uint8`)) from test_type_table;
select substring(`null`,`int8`,`float4`), pg_typeof(substring(`null`,`int8`,`float4`)) from test_type_table;
select substring(`null`,`int8`,`float8`), pg_typeof(substring(`null`,`int8`,`float8`)) from test_type_table;
select substring(`null`,`int8`,`numeric`), pg_typeof(substring(`null`,`int8`,`numeric`)) from test_type_table;
select substring(`null`,`int8`,`null`), pg_typeof(substring(`null`,`int8`,`null`)) from test_type_table;
select substring(`null`,`uint8`,`int1`), pg_typeof(substring(`null`,`uint8`,`int1`)) from test_type_table;
select substring(`null`,`uint8`,`uint1`), pg_typeof(substring(`null`,`uint8`,`uint1`)) from test_type_table;
select substring(`null`,`uint8`,`int2`), pg_typeof(substring(`null`,`uint8`,`int2`)) from test_type_table;
select substring(`null`,`uint8`,`uint2`), pg_typeof(substring(`null`,`uint8`,`uint2`)) from test_type_table;
select substring(`null`,`uint8`,`int4`), pg_typeof(substring(`null`,`uint8`,`int4`)) from test_type_table;
select substring(`null`,`uint8`,`uint4`), pg_typeof(substring(`null`,`uint8`,`uint4`)) from test_type_table;
select substring(`null`,`uint8`,`int8`), pg_typeof(substring(`null`,`uint8`,`int8`)) from test_type_table;
select substring(`null`,`uint8`,`uint8`), pg_typeof(substring(`null`,`uint8`,`uint8`)) from test_type_table;
select substring(`null`,`uint8`,`float4`), pg_typeof(substring(`null`,`uint8`,`float4`)) from test_type_table;
select substring(`null`,`uint8`,`float8`), pg_typeof(substring(`null`,`uint8`,`float8`)) from test_type_table;
select substring(`null`,`uint8`,`numeric`), pg_typeof(substring(`null`,`uint8`,`numeric`)) from test_type_table;
select substring(`null`,`uint8`,`null`), pg_typeof(substring(`null`,`uint8`,`null`)) from test_type_table;
select substring(`null`,`float4`,`int1`), pg_typeof(substring(`null`,`float4`,`int1`)) from test_type_table;
select substring(`null`,`float4`,`uint1`), pg_typeof(substring(`null`,`float4`,`uint1`)) from test_type_table;
select substring(`null`,`float4`,`int2`), pg_typeof(substring(`null`,`float4`,`int2`)) from test_type_table;
select substring(`null`,`float4`,`uint2`), pg_typeof(substring(`null`,`float4`,`uint2`)) from test_type_table;
select substring(`null`,`float4`,`int4`), pg_typeof(substring(`null`,`float4`,`int4`)) from test_type_table;
select substring(`null`,`float4`,`uint4`), pg_typeof(substring(`null`,`float4`,`uint4`)) from test_type_table;
select substring(`null`,`float4`,`int8`), pg_typeof(substring(`null`,`float4`,`int8`)) from test_type_table;
select substring(`null`,`float4`,`uint8`), pg_typeof(substring(`null`,`float4`,`uint8`)) from test_type_table;
select substring(`null`,`float4`,`float4`), pg_typeof(substring(`null`,`float4`,`float4`)) from test_type_table;
select substring(`null`,`float4`,`float8`), pg_typeof(substring(`null`,`float4`,`float8`)) from test_type_table;
select substring(`null`,`float4`,`numeric`), pg_typeof(substring(`null`,`float4`,`numeric`)) from test_type_table;
select substring(`null`,`float4`,`null`), pg_typeof(substring(`null`,`float4`,`null`)) from test_type_table;
select substring(`null`,`float8`,`int1`), pg_typeof(substring(`null`,`float8`,`int1`)) from test_type_table;
select substring(`null`,`float8`,`uint1`), pg_typeof(substring(`null`,`float8`,`uint1`)) from test_type_table;
select substring(`null`,`float8`,`int2`), pg_typeof(substring(`null`,`float8`,`int2`)) from test_type_table;
select substring(`null`,`float8`,`uint2`), pg_typeof(substring(`null`,`float8`,`uint2`)) from test_type_table;
select substring(`null`,`float8`,`int4`), pg_typeof(substring(`null`,`float8`,`int4`)) from test_type_table;
select substring(`null`,`float8`,`uint4`), pg_typeof(substring(`null`,`float8`,`uint4`)) from test_type_table;
select substring(`null`,`float8`,`int8`), pg_typeof(substring(`null`,`float8`,`int8`)) from test_type_table;
select substring(`null`,`float8`,`uint8`), pg_typeof(substring(`null`,`float8`,`uint8`)) from test_type_table;
select substring(`null`,`float8`,`float4`), pg_typeof(substring(`null`,`float8`,`float4`)) from test_type_table;
select substring(`null`,`float8`,`float8`), pg_typeof(substring(`null`,`float8`,`float8`)) from test_type_table;
select substring(`null`,`float8`,`numeric`), pg_typeof(substring(`null`,`float8`,`numeric`)) from test_type_table;
select substring(`null`,`float8`,`null`), pg_typeof(substring(`null`,`float8`,`null`)) from test_type_table;
select substring(`null`,`numeric`,`int1`), pg_typeof(substring(`null`,`numeric`,`int1`)) from test_type_table;
select substring(`null`,`numeric`,`uint1`), pg_typeof(substring(`null`,`numeric`,`uint1`)) from test_type_table;
select substring(`null`,`numeric`,`int2`), pg_typeof(substring(`null`,`numeric`,`int2`)) from test_type_table;
select substring(`null`,`numeric`,`uint2`), pg_typeof(substring(`null`,`numeric`,`uint2`)) from test_type_table;
select substring(`null`,`numeric`,`int4`), pg_typeof(substring(`null`,`numeric`,`int4`)) from test_type_table;
select substring(`null`,`numeric`,`uint4`), pg_typeof(substring(`null`,`numeric`,`uint4`)) from test_type_table;
select substring(`null`,`numeric`,`int8`), pg_typeof(substring(`null`,`numeric`,`int8`)) from test_type_table;
select substring(`null`,`numeric`,`uint8`), pg_typeof(substring(`null`,`numeric`,`uint8`)) from test_type_table;
select substring(`null`,`numeric`,`float4`), pg_typeof(substring(`null`,`numeric`,`float4`)) from test_type_table;
select substring(`null`,`numeric`,`float8`), pg_typeof(substring(`null`,`numeric`,`float8`)) from test_type_table;
select substring(`null`,`numeric`,`numeric`), pg_typeof(substring(`null`,`numeric`,`numeric`)) from test_type_table;
select substring(`null`,`numeric`,`null`), pg_typeof(substring(`null`,`numeric`,`null`)) from test_type_table;
select substring(`null`,`null`,`int1`), pg_typeof(substring(`null`,`null`,`int1`)) from test_type_table;
select substring(`null`,`null`,`uint1`), pg_typeof(substring(`null`,`null`,`uint1`)) from test_type_table;
select substring(`null`,`null`,`int2`), pg_typeof(substring(`null`,`null`,`int2`)) from test_type_table;
select substring(`null`,`null`,`uint2`), pg_typeof(substring(`null`,`null`,`uint2`)) from test_type_table;
select substring(`null`,`null`,`int4`), pg_typeof(substring(`null`,`null`,`int4`)) from test_type_table;
select substring(`null`,`null`,`uint4`), pg_typeof(substring(`null`,`null`,`uint4`)) from test_type_table;
select substring(`null`,`null`,`int8`), pg_typeof(substring(`null`,`null`,`int8`)) from test_type_table;
select substring(`null`,`null`,`uint8`), pg_typeof(substring(`null`,`null`,`uint8`)) from test_type_table;
select substring(`null`,`null`,`float4`), pg_typeof(substring(`null`,`null`,`float4`)) from test_type_table;
select substring(`null`,`null`,`float8`), pg_typeof(substring(`null`,`null`,`float8`)) from test_type_table;
select substring(`null`,`null`,`numeric`), pg_typeof(substring(`null`,`null`,`numeric`)) from test_type_table;
select substring(`null`,`null`,`null`), pg_typeof(substring(`null`,`null`,`null`)) from test_type_table;
select substr(`char` FROM `int1` FOR `int1`), pg_typeof(substr(`char` FROM `int1` FOR `int1`)) from test_type_table;
select substr(`char` FROM `int1` FOR `uint1`), pg_typeof(substr(`char` FROM `int1` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `int1` FOR `int2`), pg_typeof(substr(`char` FROM `int1` FOR `int2`)) from test_type_table;
select substr(`char` FROM `int1` FOR `uint2`), pg_typeof(substr(`char` FROM `int1` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `int1` FOR `int4`), pg_typeof(substr(`char` FROM `int1` FOR `int4`)) from test_type_table;
select substr(`char` FROM `int1` FOR `uint4`), pg_typeof(substr(`char` FROM `int1` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `int1` FOR `int8`), pg_typeof(substr(`char` FROM `int1` FOR `int8`)) from test_type_table;
select substr(`char` FROM `int1` FOR `uint8`), pg_typeof(substr(`char` FROM `int1` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `int1` FOR `float4`), pg_typeof(substr(`char` FROM `int1` FOR `float4`)) from test_type_table;
select substr(`char` FROM `int1` FOR `float8`), pg_typeof(substr(`char` FROM `int1` FOR `float8`)) from test_type_table;
select substr(`char` FROM `int1` FOR `numeric`), pg_typeof(substr(`char` FROM `int1` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `int1` FOR `null`), pg_typeof(substr(`char` FROM `int1` FOR `null`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `int1`), pg_typeof(substr(`char` FROM `uint1` FOR `int1`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `uint1`), pg_typeof(substr(`char` FROM `uint1` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `int2`), pg_typeof(substr(`char` FROM `uint1` FOR `int2`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `uint2`), pg_typeof(substr(`char` FROM `uint1` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `int4`), pg_typeof(substr(`char` FROM `uint1` FOR `int4`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `uint4`), pg_typeof(substr(`char` FROM `uint1` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `int8`), pg_typeof(substr(`char` FROM `uint1` FOR `int8`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `uint8`), pg_typeof(substr(`char` FROM `uint1` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `float4`), pg_typeof(substr(`char` FROM `uint1` FOR `float4`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `float8`), pg_typeof(substr(`char` FROM `uint1` FOR `float8`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `numeric`), pg_typeof(substr(`char` FROM `uint1` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `uint1` FOR `null`), pg_typeof(substr(`char` FROM `uint1` FOR `null`)) from test_type_table;
select substr(`char` FROM `int2` FOR `int1`), pg_typeof(substr(`char` FROM `int2` FOR `int1`)) from test_type_table;
select substr(`char` FROM `int2` FOR `uint1`), pg_typeof(substr(`char` FROM `int2` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `int2` FOR `int2`), pg_typeof(substr(`char` FROM `int2` FOR `int2`)) from test_type_table;
select substr(`char` FROM `int2` FOR `uint2`), pg_typeof(substr(`char` FROM `int2` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `int2` FOR `int4`), pg_typeof(substr(`char` FROM `int2` FOR `int4`)) from test_type_table;
select substr(`char` FROM `int2` FOR `uint4`), pg_typeof(substr(`char` FROM `int2` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `int2` FOR `int8`), pg_typeof(substr(`char` FROM `int2` FOR `int8`)) from test_type_table;
select substr(`char` FROM `int2` FOR `uint8`), pg_typeof(substr(`char` FROM `int2` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `int2` FOR `float4`), pg_typeof(substr(`char` FROM `int2` FOR `float4`)) from test_type_table;
select substr(`char` FROM `int2` FOR `float8`), pg_typeof(substr(`char` FROM `int2` FOR `float8`)) from test_type_table;
select substr(`char` FROM `int2` FOR `numeric`), pg_typeof(substr(`char` FROM `int2` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `int2` FOR `null`), pg_typeof(substr(`char` FROM `int2` FOR `null`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `int1`), pg_typeof(substr(`char` FROM `uint2` FOR `int1`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `uint1`), pg_typeof(substr(`char` FROM `uint2` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `int2`), pg_typeof(substr(`char` FROM `uint2` FOR `int2`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `uint2`), pg_typeof(substr(`char` FROM `uint2` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `int4`), pg_typeof(substr(`char` FROM `uint2` FOR `int4`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `uint4`), pg_typeof(substr(`char` FROM `uint2` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `int8`), pg_typeof(substr(`char` FROM `uint2` FOR `int8`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `uint8`), pg_typeof(substr(`char` FROM `uint2` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `float4`), pg_typeof(substr(`char` FROM `uint2` FOR `float4`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `float8`), pg_typeof(substr(`char` FROM `uint2` FOR `float8`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `numeric`), pg_typeof(substr(`char` FROM `uint2` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `uint2` FOR `null`), pg_typeof(substr(`char` FROM `uint2` FOR `null`)) from test_type_table;
select substr(`char` FROM `int4` FOR `int1`), pg_typeof(substr(`char` FROM `int4` FOR `int1`)) from test_type_table;
select substr(`char` FROM `int4` FOR `uint1`), pg_typeof(substr(`char` FROM `int4` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `int4` FOR `int2`), pg_typeof(substr(`char` FROM `int4` FOR `int2`)) from test_type_table;
select substr(`char` FROM `int4` FOR `uint2`), pg_typeof(substr(`char` FROM `int4` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `int4` FOR `int4`), pg_typeof(substr(`char` FROM `int4` FOR `int4`)) from test_type_table;
select substr(`char` FROM `int4` FOR `uint4`), pg_typeof(substr(`char` FROM `int4` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `int4` FOR `int8`), pg_typeof(substr(`char` FROM `int4` FOR `int8`)) from test_type_table;
select substr(`char` FROM `int4` FOR `uint8`), pg_typeof(substr(`char` FROM `int4` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `int4` FOR `float4`), pg_typeof(substr(`char` FROM `int4` FOR `float4`)) from test_type_table;
select substr(`char` FROM `int4` FOR `float8`), pg_typeof(substr(`char` FROM `int4` FOR `float8`)) from test_type_table;
select substr(`char` FROM `int4` FOR `numeric`), pg_typeof(substr(`char` FROM `int4` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `int4` FOR `null`), pg_typeof(substr(`char` FROM `int4` FOR `null`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `int1`), pg_typeof(substr(`char` FROM `uint4` FOR `int1`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `uint1`), pg_typeof(substr(`char` FROM `uint4` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `int2`), pg_typeof(substr(`char` FROM `uint4` FOR `int2`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `uint2`), pg_typeof(substr(`char` FROM `uint4` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `int4`), pg_typeof(substr(`char` FROM `uint4` FOR `int4`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `uint4`), pg_typeof(substr(`char` FROM `uint4` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `int8`), pg_typeof(substr(`char` FROM `uint4` FOR `int8`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `uint8`), pg_typeof(substr(`char` FROM `uint4` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `float4`), pg_typeof(substr(`char` FROM `uint4` FOR `float4`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `float8`), pg_typeof(substr(`char` FROM `uint4` FOR `float8`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `numeric`), pg_typeof(substr(`char` FROM `uint4` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `uint4` FOR `null`), pg_typeof(substr(`char` FROM `uint4` FOR `null`)) from test_type_table;
select substr(`char` FROM `int8` FOR `int1`), pg_typeof(substr(`char` FROM `int8` FOR `int1`)) from test_type_table;
select substr(`char` FROM `int8` FOR `uint1`), pg_typeof(substr(`char` FROM `int8` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `int8` FOR `int2`), pg_typeof(substr(`char` FROM `int8` FOR `int2`)) from test_type_table;
select substr(`char` FROM `int8` FOR `uint2`), pg_typeof(substr(`char` FROM `int8` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `int8` FOR `int4`), pg_typeof(substr(`char` FROM `int8` FOR `int4`)) from test_type_table;
select substr(`char` FROM `int8` FOR `uint4`), pg_typeof(substr(`char` FROM `int8` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `int8` FOR `int8`), pg_typeof(substr(`char` FROM `int8` FOR `int8`)) from test_type_table;
select substr(`char` FROM `int8` FOR `uint8`), pg_typeof(substr(`char` FROM `int8` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `int8` FOR `float4`), pg_typeof(substr(`char` FROM `int8` FOR `float4`)) from test_type_table;
select substr(`char` FROM `int8` FOR `float8`), pg_typeof(substr(`char` FROM `int8` FOR `float8`)) from test_type_table;
select substr(`char` FROM `int8` FOR `numeric`), pg_typeof(substr(`char` FROM `int8` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `int8` FOR `null`), pg_typeof(substr(`char` FROM `int8` FOR `null`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `int1`), pg_typeof(substr(`char` FROM `uint8` FOR `int1`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `uint1`), pg_typeof(substr(`char` FROM `uint8` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `int2`), pg_typeof(substr(`char` FROM `uint8` FOR `int2`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `uint2`), pg_typeof(substr(`char` FROM `uint8` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `int4`), pg_typeof(substr(`char` FROM `uint8` FOR `int4`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `uint4`), pg_typeof(substr(`char` FROM `uint8` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `int8`), pg_typeof(substr(`char` FROM `uint8` FOR `int8`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `uint8`), pg_typeof(substr(`char` FROM `uint8` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `float4`), pg_typeof(substr(`char` FROM `uint8` FOR `float4`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `float8`), pg_typeof(substr(`char` FROM `uint8` FOR `float8`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `numeric`), pg_typeof(substr(`char` FROM `uint8` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `uint8` FOR `null`), pg_typeof(substr(`char` FROM `uint8` FOR `null`)) from test_type_table;
select substr(`char` FROM `float4` FOR `int1`), pg_typeof(substr(`char` FROM `float4` FOR `int1`)) from test_type_table;
select substr(`char` FROM `float4` FOR `uint1`), pg_typeof(substr(`char` FROM `float4` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `float4` FOR `int2`), pg_typeof(substr(`char` FROM `float4` FOR `int2`)) from test_type_table;
select substr(`char` FROM `float4` FOR `uint2`), pg_typeof(substr(`char` FROM `float4` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `float4` FOR `int4`), pg_typeof(substr(`char` FROM `float4` FOR `int4`)) from test_type_table;
select substr(`char` FROM `float4` FOR `uint4`), pg_typeof(substr(`char` FROM `float4` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `float4` FOR `int8`), pg_typeof(substr(`char` FROM `float4` FOR `int8`)) from test_type_table;
select substr(`char` FROM `float4` FOR `uint8`), pg_typeof(substr(`char` FROM `float4` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `float4` FOR `float4`), pg_typeof(substr(`char` FROM `float4` FOR `float4`)) from test_type_table;
select substr(`char` FROM `float4` FOR `float8`), pg_typeof(substr(`char` FROM `float4` FOR `float8`)) from test_type_table;
select substr(`char` FROM `float4` FOR `numeric`), pg_typeof(substr(`char` FROM `float4` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `float4` FOR `null`), pg_typeof(substr(`char` FROM `float4` FOR `null`)) from test_type_table;
select substr(`char` FROM `float8` FOR `int1`), pg_typeof(substr(`char` FROM `float8` FOR `int1`)) from test_type_table;
select substr(`char` FROM `float8` FOR `uint1`), pg_typeof(substr(`char` FROM `float8` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `float8` FOR `int2`), pg_typeof(substr(`char` FROM `float8` FOR `int2`)) from test_type_table;
select substr(`char` FROM `float8` FOR `uint2`), pg_typeof(substr(`char` FROM `float8` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `float8` FOR `int4`), pg_typeof(substr(`char` FROM `float8` FOR `int4`)) from test_type_table;
select substr(`char` FROM `float8` FOR `uint4`), pg_typeof(substr(`char` FROM `float8` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `float8` FOR `int8`), pg_typeof(substr(`char` FROM `float8` FOR `int8`)) from test_type_table;
select substr(`char` FROM `float8` FOR `uint8`), pg_typeof(substr(`char` FROM `float8` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `float8` FOR `float4`), pg_typeof(substr(`char` FROM `float8` FOR `float4`)) from test_type_table;
select substr(`char` FROM `float8` FOR `float8`), pg_typeof(substr(`char` FROM `float8` FOR `float8`)) from test_type_table;
select substr(`char` FROM `float8` FOR `numeric`), pg_typeof(substr(`char` FROM `float8` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `float8` FOR `null`), pg_typeof(substr(`char` FROM `float8` FOR `null`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `int1`), pg_typeof(substr(`char` FROM `numeric` FOR `int1`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `uint1`), pg_typeof(substr(`char` FROM `numeric` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `int2`), pg_typeof(substr(`char` FROM `numeric` FOR `int2`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `uint2`), pg_typeof(substr(`char` FROM `numeric` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `int4`), pg_typeof(substr(`char` FROM `numeric` FOR `int4`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `uint4`), pg_typeof(substr(`char` FROM `numeric` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `int8`), pg_typeof(substr(`char` FROM `numeric` FOR `int8`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `uint8`), pg_typeof(substr(`char` FROM `numeric` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `float4`), pg_typeof(substr(`char` FROM `numeric` FOR `float4`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `float8`), pg_typeof(substr(`char` FROM `numeric` FOR `float8`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `numeric`), pg_typeof(substr(`char` FROM `numeric` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `numeric` FOR `null`), pg_typeof(substr(`char` FROM `numeric` FOR `null`)) from test_type_table;
select substr(`char` FROM `null` FOR `int1`), pg_typeof(substr(`char` FROM `null` FOR `int1`)) from test_type_table;
select substr(`char` FROM `null` FOR `uint1`), pg_typeof(substr(`char` FROM `null` FOR `uint1`)) from test_type_table;
select substr(`char` FROM `null` FOR `int2`), pg_typeof(substr(`char` FROM `null` FOR `int2`)) from test_type_table;
select substr(`char` FROM `null` FOR `uint2`), pg_typeof(substr(`char` FROM `null` FOR `uint2`)) from test_type_table;
select substr(`char` FROM `null` FOR `int4`), pg_typeof(substr(`char` FROM `null` FOR `int4`)) from test_type_table;
select substr(`char` FROM `null` FOR `uint4`), pg_typeof(substr(`char` FROM `null` FOR `uint4`)) from test_type_table;
select substr(`char` FROM `null` FOR `int8`), pg_typeof(substr(`char` FROM `null` FOR `int8`)) from test_type_table;
select substr(`char` FROM `null` FOR `uint8`), pg_typeof(substr(`char` FROM `null` FOR `uint8`)) from test_type_table;
select substr(`char` FROM `null` FOR `float4`), pg_typeof(substr(`char` FROM `null` FOR `float4`)) from test_type_table;
select substr(`char` FROM `null` FOR `float8`), pg_typeof(substr(`char` FROM `null` FOR `float8`)) from test_type_table;
select substr(`char` FROM `null` FOR `numeric`), pg_typeof(substr(`char` FROM `null` FOR `numeric`)) from test_type_table;
select substr(`char` FROM `null` FOR `null`), pg_typeof(substr(`char` FROM `null` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `int1`), pg_typeof(substr(`varchar` FROM `int1` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `uint1`), pg_typeof(substr(`varchar` FROM `int1` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `int2`), pg_typeof(substr(`varchar` FROM `int1` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `uint2`), pg_typeof(substr(`varchar` FROM `int1` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `int4`), pg_typeof(substr(`varchar` FROM `int1` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `uint4`), pg_typeof(substr(`varchar` FROM `int1` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `int8`), pg_typeof(substr(`varchar` FROM `int1` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `uint8`), pg_typeof(substr(`varchar` FROM `int1` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `float4`), pg_typeof(substr(`varchar` FROM `int1` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `float8`), pg_typeof(substr(`varchar` FROM `int1` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `numeric`), pg_typeof(substr(`varchar` FROM `int1` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `int1` FOR `null`), pg_typeof(substr(`varchar` FROM `int1` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `int1`), pg_typeof(substr(`varchar` FROM `uint1` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `uint1`), pg_typeof(substr(`varchar` FROM `uint1` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `int2`), pg_typeof(substr(`varchar` FROM `uint1` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `uint2`), pg_typeof(substr(`varchar` FROM `uint1` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `int4`), pg_typeof(substr(`varchar` FROM `uint1` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `uint4`), pg_typeof(substr(`varchar` FROM `uint1` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `int8`), pg_typeof(substr(`varchar` FROM `uint1` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `uint8`), pg_typeof(substr(`varchar` FROM `uint1` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `float4`), pg_typeof(substr(`varchar` FROM `uint1` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `float8`), pg_typeof(substr(`varchar` FROM `uint1` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `numeric`), pg_typeof(substr(`varchar` FROM `uint1` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `uint1` FOR `null`), pg_typeof(substr(`varchar` FROM `uint1` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `int1`), pg_typeof(substr(`varchar` FROM `int2` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `uint1`), pg_typeof(substr(`varchar` FROM `int2` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `int2`), pg_typeof(substr(`varchar` FROM `int2` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `uint2`), pg_typeof(substr(`varchar` FROM `int2` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `int4`), pg_typeof(substr(`varchar` FROM `int2` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `uint4`), pg_typeof(substr(`varchar` FROM `int2` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `int8`), pg_typeof(substr(`varchar` FROM `int2` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `uint8`), pg_typeof(substr(`varchar` FROM `int2` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `float4`), pg_typeof(substr(`varchar` FROM `int2` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `float8`), pg_typeof(substr(`varchar` FROM `int2` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `numeric`), pg_typeof(substr(`varchar` FROM `int2` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `int2` FOR `null`), pg_typeof(substr(`varchar` FROM `int2` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `int1`), pg_typeof(substr(`varchar` FROM `uint2` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `uint1`), pg_typeof(substr(`varchar` FROM `uint2` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `int2`), pg_typeof(substr(`varchar` FROM `uint2` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `uint2`), pg_typeof(substr(`varchar` FROM `uint2` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `int4`), pg_typeof(substr(`varchar` FROM `uint2` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `uint4`), pg_typeof(substr(`varchar` FROM `uint2` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `int8`), pg_typeof(substr(`varchar` FROM `uint2` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `uint8`), pg_typeof(substr(`varchar` FROM `uint2` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `float4`), pg_typeof(substr(`varchar` FROM `uint2` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `float8`), pg_typeof(substr(`varchar` FROM `uint2` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `numeric`), pg_typeof(substr(`varchar` FROM `uint2` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `uint2` FOR `null`), pg_typeof(substr(`varchar` FROM `uint2` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `int1`), pg_typeof(substr(`varchar` FROM `int4` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `uint1`), pg_typeof(substr(`varchar` FROM `int4` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `int2`), pg_typeof(substr(`varchar` FROM `int4` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `uint2`), pg_typeof(substr(`varchar` FROM `int4` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `int4`), pg_typeof(substr(`varchar` FROM `int4` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `uint4`), pg_typeof(substr(`varchar` FROM `int4` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `int8`), pg_typeof(substr(`varchar` FROM `int4` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `uint8`), pg_typeof(substr(`varchar` FROM `int4` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `float4`), pg_typeof(substr(`varchar` FROM `int4` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `float8`), pg_typeof(substr(`varchar` FROM `int4` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `numeric`), pg_typeof(substr(`varchar` FROM `int4` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `int4` FOR `null`), pg_typeof(substr(`varchar` FROM `int4` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `int1`), pg_typeof(substr(`varchar` FROM `uint4` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `uint1`), pg_typeof(substr(`varchar` FROM `uint4` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `int2`), pg_typeof(substr(`varchar` FROM `uint4` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `uint2`), pg_typeof(substr(`varchar` FROM `uint4` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `int4`), pg_typeof(substr(`varchar` FROM `uint4` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `uint4`), pg_typeof(substr(`varchar` FROM `uint4` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `int8`), pg_typeof(substr(`varchar` FROM `uint4` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `uint8`), pg_typeof(substr(`varchar` FROM `uint4` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `float4`), pg_typeof(substr(`varchar` FROM `uint4` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `float8`), pg_typeof(substr(`varchar` FROM `uint4` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `numeric`), pg_typeof(substr(`varchar` FROM `uint4` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `uint4` FOR `null`), pg_typeof(substr(`varchar` FROM `uint4` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `int1`), pg_typeof(substr(`varchar` FROM `int8` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `uint1`), pg_typeof(substr(`varchar` FROM `int8` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `int2`), pg_typeof(substr(`varchar` FROM `int8` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `uint2`), pg_typeof(substr(`varchar` FROM `int8` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `int4`), pg_typeof(substr(`varchar` FROM `int8` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `uint4`), pg_typeof(substr(`varchar` FROM `int8` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `int8`), pg_typeof(substr(`varchar` FROM `int8` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `uint8`), pg_typeof(substr(`varchar` FROM `int8` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `float4`), pg_typeof(substr(`varchar` FROM `int8` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `float8`), pg_typeof(substr(`varchar` FROM `int8` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `numeric`), pg_typeof(substr(`varchar` FROM `int8` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `int8` FOR `null`), pg_typeof(substr(`varchar` FROM `int8` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `int1`), pg_typeof(substr(`varchar` FROM `uint8` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `uint1`), pg_typeof(substr(`varchar` FROM `uint8` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `int2`), pg_typeof(substr(`varchar` FROM `uint8` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `uint2`), pg_typeof(substr(`varchar` FROM `uint8` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `int4`), pg_typeof(substr(`varchar` FROM `uint8` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `uint4`), pg_typeof(substr(`varchar` FROM `uint8` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `int8`), pg_typeof(substr(`varchar` FROM `uint8` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `uint8`), pg_typeof(substr(`varchar` FROM `uint8` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `float4`), pg_typeof(substr(`varchar` FROM `uint8` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `float8`), pg_typeof(substr(`varchar` FROM `uint8` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `numeric`), pg_typeof(substr(`varchar` FROM `uint8` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `uint8` FOR `null`), pg_typeof(substr(`varchar` FROM `uint8` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `int1`), pg_typeof(substr(`varchar` FROM `float4` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `uint1`), pg_typeof(substr(`varchar` FROM `float4` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `int2`), pg_typeof(substr(`varchar` FROM `float4` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `uint2`), pg_typeof(substr(`varchar` FROM `float4` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `int4`), pg_typeof(substr(`varchar` FROM `float4` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `uint4`), pg_typeof(substr(`varchar` FROM `float4` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `int8`), pg_typeof(substr(`varchar` FROM `float4` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `uint8`), pg_typeof(substr(`varchar` FROM `float4` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `float4`), pg_typeof(substr(`varchar` FROM `float4` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `float8`), pg_typeof(substr(`varchar` FROM `float4` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `numeric`), pg_typeof(substr(`varchar` FROM `float4` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `float4` FOR `null`), pg_typeof(substr(`varchar` FROM `float4` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `int1`), pg_typeof(substr(`varchar` FROM `float8` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `uint1`), pg_typeof(substr(`varchar` FROM `float8` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `int2`), pg_typeof(substr(`varchar` FROM `float8` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `uint2`), pg_typeof(substr(`varchar` FROM `float8` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `int4`), pg_typeof(substr(`varchar` FROM `float8` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `uint4`), pg_typeof(substr(`varchar` FROM `float8` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `int8`), pg_typeof(substr(`varchar` FROM `float8` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `uint8`), pg_typeof(substr(`varchar` FROM `float8` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `float4`), pg_typeof(substr(`varchar` FROM `float8` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `float8`), pg_typeof(substr(`varchar` FROM `float8` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `numeric`), pg_typeof(substr(`varchar` FROM `float8` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `float8` FOR `null`), pg_typeof(substr(`varchar` FROM `float8` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `int1`), pg_typeof(substr(`varchar` FROM `numeric` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `uint1`), pg_typeof(substr(`varchar` FROM `numeric` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `int2`), pg_typeof(substr(`varchar` FROM `numeric` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `uint2`), pg_typeof(substr(`varchar` FROM `numeric` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `int4`), pg_typeof(substr(`varchar` FROM `numeric` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `uint4`), pg_typeof(substr(`varchar` FROM `numeric` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `int8`), pg_typeof(substr(`varchar` FROM `numeric` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `uint8`), pg_typeof(substr(`varchar` FROM `numeric` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `float4`), pg_typeof(substr(`varchar` FROM `numeric` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `float8`), pg_typeof(substr(`varchar` FROM `numeric` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `numeric`), pg_typeof(substr(`varchar` FROM `numeric` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `numeric` FOR `null`), pg_typeof(substr(`varchar` FROM `numeric` FOR `null`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `int1`), pg_typeof(substr(`varchar` FROM `null` FOR `int1`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `uint1`), pg_typeof(substr(`varchar` FROM `null` FOR `uint1`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `int2`), pg_typeof(substr(`varchar` FROM `null` FOR `int2`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `uint2`), pg_typeof(substr(`varchar` FROM `null` FOR `uint2`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `int4`), pg_typeof(substr(`varchar` FROM `null` FOR `int4`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `uint4`), pg_typeof(substr(`varchar` FROM `null` FOR `uint4`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `int8`), pg_typeof(substr(`varchar` FROM `null` FOR `int8`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `uint8`), pg_typeof(substr(`varchar` FROM `null` FOR `uint8`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `float4`), pg_typeof(substr(`varchar` FROM `null` FOR `float4`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `float8`), pg_typeof(substr(`varchar` FROM `null` FOR `float8`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `numeric`), pg_typeof(substr(`varchar` FROM `null` FOR `numeric`)) from test_type_table;
select substr(`varchar` FROM `null` FOR `null`), pg_typeof(substr(`varchar` FROM `null` FOR `null`)) from test_type_table;
select substr(`text` FROM `int1` FOR `int1`), pg_typeof(substr(`text` FROM `int1` FOR `int1`)) from test_type_table;
select substr(`text` FROM `int1` FOR `uint1`), pg_typeof(substr(`text` FROM `int1` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `int1` FOR `int2`), pg_typeof(substr(`text` FROM `int1` FOR `int2`)) from test_type_table;
select substr(`text` FROM `int1` FOR `uint2`), pg_typeof(substr(`text` FROM `int1` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `int1` FOR `int4`), pg_typeof(substr(`text` FROM `int1` FOR `int4`)) from test_type_table;
select substr(`text` FROM `int1` FOR `uint4`), pg_typeof(substr(`text` FROM `int1` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `int1` FOR `int8`), pg_typeof(substr(`text` FROM `int1` FOR `int8`)) from test_type_table;
select substr(`text` FROM `int1` FOR `uint8`), pg_typeof(substr(`text` FROM `int1` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `int1` FOR `float4`), pg_typeof(substr(`text` FROM `int1` FOR `float4`)) from test_type_table;
select substr(`text` FROM `int1` FOR `float8`), pg_typeof(substr(`text` FROM `int1` FOR `float8`)) from test_type_table;
select substr(`text` FROM `int1` FOR `numeric`), pg_typeof(substr(`text` FROM `int1` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `int1` FOR `null`), pg_typeof(substr(`text` FROM `int1` FOR `null`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `int1`), pg_typeof(substr(`text` FROM `uint1` FOR `int1`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `uint1`), pg_typeof(substr(`text` FROM `uint1` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `int2`), pg_typeof(substr(`text` FROM `uint1` FOR `int2`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `uint2`), pg_typeof(substr(`text` FROM `uint1` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `int4`), pg_typeof(substr(`text` FROM `uint1` FOR `int4`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `uint4`), pg_typeof(substr(`text` FROM `uint1` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `int8`), pg_typeof(substr(`text` FROM `uint1` FOR `int8`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `uint8`), pg_typeof(substr(`text` FROM `uint1` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `float4`), pg_typeof(substr(`text` FROM `uint1` FOR `float4`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `float8`), pg_typeof(substr(`text` FROM `uint1` FOR `float8`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `numeric`), pg_typeof(substr(`text` FROM `uint1` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `uint1` FOR `null`), pg_typeof(substr(`text` FROM `uint1` FOR `null`)) from test_type_table;
select substr(`text` FROM `int2` FOR `int1`), pg_typeof(substr(`text` FROM `int2` FOR `int1`)) from test_type_table;
select substr(`text` FROM `int2` FOR `uint1`), pg_typeof(substr(`text` FROM `int2` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `int2` FOR `int2`), pg_typeof(substr(`text` FROM `int2` FOR `int2`)) from test_type_table;
select substr(`text` FROM `int2` FOR `uint2`), pg_typeof(substr(`text` FROM `int2` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `int2` FOR `int4`), pg_typeof(substr(`text` FROM `int2` FOR `int4`)) from test_type_table;
select substr(`text` FROM `int2` FOR `uint4`), pg_typeof(substr(`text` FROM `int2` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `int2` FOR `int8`), pg_typeof(substr(`text` FROM `int2` FOR `int8`)) from test_type_table;
select substr(`text` FROM `int2` FOR `uint8`), pg_typeof(substr(`text` FROM `int2` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `int2` FOR `float4`), pg_typeof(substr(`text` FROM `int2` FOR `float4`)) from test_type_table;
select substr(`text` FROM `int2` FOR `float8`), pg_typeof(substr(`text` FROM `int2` FOR `float8`)) from test_type_table;
select substr(`text` FROM `int2` FOR `numeric`), pg_typeof(substr(`text` FROM `int2` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `int2` FOR `null`), pg_typeof(substr(`text` FROM `int2` FOR `null`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `int1`), pg_typeof(substr(`text` FROM `uint2` FOR `int1`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `uint1`), pg_typeof(substr(`text` FROM `uint2` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `int2`), pg_typeof(substr(`text` FROM `uint2` FOR `int2`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `uint2`), pg_typeof(substr(`text` FROM `uint2` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `int4`), pg_typeof(substr(`text` FROM `uint2` FOR `int4`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `uint4`), pg_typeof(substr(`text` FROM `uint2` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `int8`), pg_typeof(substr(`text` FROM `uint2` FOR `int8`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `uint8`), pg_typeof(substr(`text` FROM `uint2` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `float4`), pg_typeof(substr(`text` FROM `uint2` FOR `float4`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `float8`), pg_typeof(substr(`text` FROM `uint2` FOR `float8`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `numeric`), pg_typeof(substr(`text` FROM `uint2` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `uint2` FOR `null`), pg_typeof(substr(`text` FROM `uint2` FOR `null`)) from test_type_table;
select substr(`text` FROM `int4` FOR `int1`), pg_typeof(substr(`text` FROM `int4` FOR `int1`)) from test_type_table;
select substr(`text` FROM `int4` FOR `uint1`), pg_typeof(substr(`text` FROM `int4` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `int4` FOR `int2`), pg_typeof(substr(`text` FROM `int4` FOR `int2`)) from test_type_table;
select substr(`text` FROM `int4` FOR `uint2`), pg_typeof(substr(`text` FROM `int4` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `int4` FOR `int4`), pg_typeof(substr(`text` FROM `int4` FOR `int4`)) from test_type_table;
select substr(`text` FROM `int4` FOR `uint4`), pg_typeof(substr(`text` FROM `int4` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `int4` FOR `int8`), pg_typeof(substr(`text` FROM `int4` FOR `int8`)) from test_type_table;
select substr(`text` FROM `int4` FOR `uint8`), pg_typeof(substr(`text` FROM `int4` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `int4` FOR `float4`), pg_typeof(substr(`text` FROM `int4` FOR `float4`)) from test_type_table;
select substr(`text` FROM `int4` FOR `float8`), pg_typeof(substr(`text` FROM `int4` FOR `float8`)) from test_type_table;
select substr(`text` FROM `int4` FOR `numeric`), pg_typeof(substr(`text` FROM `int4` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `int4` FOR `null`), pg_typeof(substr(`text` FROM `int4` FOR `null`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `int1`), pg_typeof(substr(`text` FROM `uint4` FOR `int1`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `uint1`), pg_typeof(substr(`text` FROM `uint4` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `int2`), pg_typeof(substr(`text` FROM `uint4` FOR `int2`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `uint2`), pg_typeof(substr(`text` FROM `uint4` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `int4`), pg_typeof(substr(`text` FROM `uint4` FOR `int4`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `uint4`), pg_typeof(substr(`text` FROM `uint4` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `int8`), pg_typeof(substr(`text` FROM `uint4` FOR `int8`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `uint8`), pg_typeof(substr(`text` FROM `uint4` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `float4`), pg_typeof(substr(`text` FROM `uint4` FOR `float4`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `float8`), pg_typeof(substr(`text` FROM `uint4` FOR `float8`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `numeric`), pg_typeof(substr(`text` FROM `uint4` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `uint4` FOR `null`), pg_typeof(substr(`text` FROM `uint4` FOR `null`)) from test_type_table;
select substr(`text` FROM `int8` FOR `int1`), pg_typeof(substr(`text` FROM `int8` FOR `int1`)) from test_type_table;
select substr(`text` FROM `int8` FOR `uint1`), pg_typeof(substr(`text` FROM `int8` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `int8` FOR `int2`), pg_typeof(substr(`text` FROM `int8` FOR `int2`)) from test_type_table;
select substr(`text` FROM `int8` FOR `uint2`), pg_typeof(substr(`text` FROM `int8` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `int8` FOR `int4`), pg_typeof(substr(`text` FROM `int8` FOR `int4`)) from test_type_table;
select substr(`text` FROM `int8` FOR `uint4`), pg_typeof(substr(`text` FROM `int8` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `int8` FOR `int8`), pg_typeof(substr(`text` FROM `int8` FOR `int8`)) from test_type_table;
select substr(`text` FROM `int8` FOR `uint8`), pg_typeof(substr(`text` FROM `int8` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `int8` FOR `float4`), pg_typeof(substr(`text` FROM `int8` FOR `float4`)) from test_type_table;
select substr(`text` FROM `int8` FOR `float8`), pg_typeof(substr(`text` FROM `int8` FOR `float8`)) from test_type_table;
select substr(`text` FROM `int8` FOR `numeric`), pg_typeof(substr(`text` FROM `int8` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `int8` FOR `null`), pg_typeof(substr(`text` FROM `int8` FOR `null`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `int1`), pg_typeof(substr(`text` FROM `uint8` FOR `int1`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `uint1`), pg_typeof(substr(`text` FROM `uint8` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `int2`), pg_typeof(substr(`text` FROM `uint8` FOR `int2`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `uint2`), pg_typeof(substr(`text` FROM `uint8` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `int4`), pg_typeof(substr(`text` FROM `uint8` FOR `int4`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `uint4`), pg_typeof(substr(`text` FROM `uint8` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `int8`), pg_typeof(substr(`text` FROM `uint8` FOR `int8`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `uint8`), pg_typeof(substr(`text` FROM `uint8` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `float4`), pg_typeof(substr(`text` FROM `uint8` FOR `float4`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `float8`), pg_typeof(substr(`text` FROM `uint8` FOR `float8`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `numeric`), pg_typeof(substr(`text` FROM `uint8` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `uint8` FOR `null`), pg_typeof(substr(`text` FROM `uint8` FOR `null`)) from test_type_table;
select substr(`text` FROM `float4` FOR `int1`), pg_typeof(substr(`text` FROM `float4` FOR `int1`)) from test_type_table;
select substr(`text` FROM `float4` FOR `uint1`), pg_typeof(substr(`text` FROM `float4` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `float4` FOR `int2`), pg_typeof(substr(`text` FROM `float4` FOR `int2`)) from test_type_table;
select substr(`text` FROM `float4` FOR `uint2`), pg_typeof(substr(`text` FROM `float4` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `float4` FOR `int4`), pg_typeof(substr(`text` FROM `float4` FOR `int4`)) from test_type_table;
select substr(`text` FROM `float4` FOR `uint4`), pg_typeof(substr(`text` FROM `float4` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `float4` FOR `int8`), pg_typeof(substr(`text` FROM `float4` FOR `int8`)) from test_type_table;
select substr(`text` FROM `float4` FOR `uint8`), pg_typeof(substr(`text` FROM `float4` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `float4` FOR `float4`), pg_typeof(substr(`text` FROM `float4` FOR `float4`)) from test_type_table;
select substr(`text` FROM `float4` FOR `float8`), pg_typeof(substr(`text` FROM `float4` FOR `float8`)) from test_type_table;
select substr(`text` FROM `float4` FOR `numeric`), pg_typeof(substr(`text` FROM `float4` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `float4` FOR `null`), pg_typeof(substr(`text` FROM `float4` FOR `null`)) from test_type_table;
select substr(`text` FROM `float8` FOR `int1`), pg_typeof(substr(`text` FROM `float8` FOR `int1`)) from test_type_table;
select substr(`text` FROM `float8` FOR `uint1`), pg_typeof(substr(`text` FROM `float8` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `float8` FOR `int2`), pg_typeof(substr(`text` FROM `float8` FOR `int2`)) from test_type_table;
select substr(`text` FROM `float8` FOR `uint2`), pg_typeof(substr(`text` FROM `float8` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `float8` FOR `int4`), pg_typeof(substr(`text` FROM `float8` FOR `int4`)) from test_type_table;
select substr(`text` FROM `float8` FOR `uint4`), pg_typeof(substr(`text` FROM `float8` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `float8` FOR `int8`), pg_typeof(substr(`text` FROM `float8` FOR `int8`)) from test_type_table;
select substr(`text` FROM `float8` FOR `uint8`), pg_typeof(substr(`text` FROM `float8` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `float8` FOR `float4`), pg_typeof(substr(`text` FROM `float8` FOR `float4`)) from test_type_table;
select substr(`text` FROM `float8` FOR `float8`), pg_typeof(substr(`text` FROM `float8` FOR `float8`)) from test_type_table;
select substr(`text` FROM `float8` FOR `numeric`), pg_typeof(substr(`text` FROM `float8` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `float8` FOR `null`), pg_typeof(substr(`text` FROM `float8` FOR `null`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `int1`), pg_typeof(substr(`text` FROM `numeric` FOR `int1`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `uint1`), pg_typeof(substr(`text` FROM `numeric` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `int2`), pg_typeof(substr(`text` FROM `numeric` FOR `int2`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `uint2`), pg_typeof(substr(`text` FROM `numeric` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `int4`), pg_typeof(substr(`text` FROM `numeric` FOR `int4`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `uint4`), pg_typeof(substr(`text` FROM `numeric` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `int8`), pg_typeof(substr(`text` FROM `numeric` FOR `int8`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `uint8`), pg_typeof(substr(`text` FROM `numeric` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `float4`), pg_typeof(substr(`text` FROM `numeric` FOR `float4`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `float8`), pg_typeof(substr(`text` FROM `numeric` FOR `float8`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `numeric`), pg_typeof(substr(`text` FROM `numeric` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `numeric` FOR `null`), pg_typeof(substr(`text` FROM `numeric` FOR `null`)) from test_type_table;
select substr(`text` FROM `null` FOR `int1`), pg_typeof(substr(`text` FROM `null` FOR `int1`)) from test_type_table;
select substr(`text` FROM `null` FOR `uint1`), pg_typeof(substr(`text` FROM `null` FOR `uint1`)) from test_type_table;
select substr(`text` FROM `null` FOR `int2`), pg_typeof(substr(`text` FROM `null` FOR `int2`)) from test_type_table;
select substr(`text` FROM `null` FOR `uint2`), pg_typeof(substr(`text` FROM `null` FOR `uint2`)) from test_type_table;
select substr(`text` FROM `null` FOR `int4`), pg_typeof(substr(`text` FROM `null` FOR `int4`)) from test_type_table;
select substr(`text` FROM `null` FOR `uint4`), pg_typeof(substr(`text` FROM `null` FOR `uint4`)) from test_type_table;
select substr(`text` FROM `null` FOR `int8`), pg_typeof(substr(`text` FROM `null` FOR `int8`)) from test_type_table;
select substr(`text` FROM `null` FOR `uint8`), pg_typeof(substr(`text` FROM `null` FOR `uint8`)) from test_type_table;
select substr(`text` FROM `null` FOR `float4`), pg_typeof(substr(`text` FROM `null` FOR `float4`)) from test_type_table;
select substr(`text` FROM `null` FOR `float8`), pg_typeof(substr(`text` FROM `null` FOR `float8`)) from test_type_table;
select substr(`text` FROM `null` FOR `numeric`), pg_typeof(substr(`text` FROM `null` FOR `numeric`)) from test_type_table;
select substr(`text` FROM `null` FOR `null`), pg_typeof(substr(`text` FROM `null` FOR `null`)) from test_type_table;
select substr(`null` FROM `int1` FOR `int1`), pg_typeof(substr(`null` FROM `int1` FOR `int1`)) from test_type_table;
select substr(`null` FROM `int1` FOR `uint1`), pg_typeof(substr(`null` FROM `int1` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `int1` FOR `int2`), pg_typeof(substr(`null` FROM `int1` FOR `int2`)) from test_type_table;
select substr(`null` FROM `int1` FOR `uint2`), pg_typeof(substr(`null` FROM `int1` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `int1` FOR `int4`), pg_typeof(substr(`null` FROM `int1` FOR `int4`)) from test_type_table;
select substr(`null` FROM `int1` FOR `uint4`), pg_typeof(substr(`null` FROM `int1` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `int1` FOR `int8`), pg_typeof(substr(`null` FROM `int1` FOR `int8`)) from test_type_table;
select substr(`null` FROM `int1` FOR `uint8`), pg_typeof(substr(`null` FROM `int1` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `int1` FOR `float4`), pg_typeof(substr(`null` FROM `int1` FOR `float4`)) from test_type_table;
select substr(`null` FROM `int1` FOR `float8`), pg_typeof(substr(`null` FROM `int1` FOR `float8`)) from test_type_table;
select substr(`null` FROM `int1` FOR `numeric`), pg_typeof(substr(`null` FROM `int1` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `int1` FOR `null`), pg_typeof(substr(`null` FROM `int1` FOR `null`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `int1`), pg_typeof(substr(`null` FROM `uint1` FOR `int1`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `uint1`), pg_typeof(substr(`null` FROM `uint1` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `int2`), pg_typeof(substr(`null` FROM `uint1` FOR `int2`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `uint2`), pg_typeof(substr(`null` FROM `uint1` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `int4`), pg_typeof(substr(`null` FROM `uint1` FOR `int4`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `uint4`), pg_typeof(substr(`null` FROM `uint1` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `int8`), pg_typeof(substr(`null` FROM `uint1` FOR `int8`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `uint8`), pg_typeof(substr(`null` FROM `uint1` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `float4`), pg_typeof(substr(`null` FROM `uint1` FOR `float4`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `float8`), pg_typeof(substr(`null` FROM `uint1` FOR `float8`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `numeric`), pg_typeof(substr(`null` FROM `uint1` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `uint1` FOR `null`), pg_typeof(substr(`null` FROM `uint1` FOR `null`)) from test_type_table;
select substr(`null` FROM `int2` FOR `int1`), pg_typeof(substr(`null` FROM `int2` FOR `int1`)) from test_type_table;
select substr(`null` FROM `int2` FOR `uint1`), pg_typeof(substr(`null` FROM `int2` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `int2` FOR `int2`), pg_typeof(substr(`null` FROM `int2` FOR `int2`)) from test_type_table;
select substr(`null` FROM `int2` FOR `uint2`), pg_typeof(substr(`null` FROM `int2` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `int2` FOR `int4`), pg_typeof(substr(`null` FROM `int2` FOR `int4`)) from test_type_table;
select substr(`null` FROM `int2` FOR `uint4`), pg_typeof(substr(`null` FROM `int2` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `int2` FOR `int8`), pg_typeof(substr(`null` FROM `int2` FOR `int8`)) from test_type_table;
select substr(`null` FROM `int2` FOR `uint8`), pg_typeof(substr(`null` FROM `int2` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `int2` FOR `float4`), pg_typeof(substr(`null` FROM `int2` FOR `float4`)) from test_type_table;
select substr(`null` FROM `int2` FOR `float8`), pg_typeof(substr(`null` FROM `int2` FOR `float8`)) from test_type_table;
select substr(`null` FROM `int2` FOR `numeric`), pg_typeof(substr(`null` FROM `int2` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `int2` FOR `null`), pg_typeof(substr(`null` FROM `int2` FOR `null`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `int1`), pg_typeof(substr(`null` FROM `uint2` FOR `int1`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `uint1`), pg_typeof(substr(`null` FROM `uint2` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `int2`), pg_typeof(substr(`null` FROM `uint2` FOR `int2`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `uint2`), pg_typeof(substr(`null` FROM `uint2` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `int4`), pg_typeof(substr(`null` FROM `uint2` FOR `int4`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `uint4`), pg_typeof(substr(`null` FROM `uint2` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `int8`), pg_typeof(substr(`null` FROM `uint2` FOR `int8`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `uint8`), pg_typeof(substr(`null` FROM `uint2` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `float4`), pg_typeof(substr(`null` FROM `uint2` FOR `float4`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `float8`), pg_typeof(substr(`null` FROM `uint2` FOR `float8`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `numeric`), pg_typeof(substr(`null` FROM `uint2` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `uint2` FOR `null`), pg_typeof(substr(`null` FROM `uint2` FOR `null`)) from test_type_table;
select substr(`null` FROM `int4` FOR `int1`), pg_typeof(substr(`null` FROM `int4` FOR `int1`)) from test_type_table;
select substr(`null` FROM `int4` FOR `uint1`), pg_typeof(substr(`null` FROM `int4` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `int4` FOR `int2`), pg_typeof(substr(`null` FROM `int4` FOR `int2`)) from test_type_table;
select substr(`null` FROM `int4` FOR `uint2`), pg_typeof(substr(`null` FROM `int4` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `int4` FOR `int4`), pg_typeof(substr(`null` FROM `int4` FOR `int4`)) from test_type_table;
select substr(`null` FROM `int4` FOR `uint4`), pg_typeof(substr(`null` FROM `int4` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `int4` FOR `int8`), pg_typeof(substr(`null` FROM `int4` FOR `int8`)) from test_type_table;
select substr(`null` FROM `int4` FOR `uint8`), pg_typeof(substr(`null` FROM `int4` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `int4` FOR `float4`), pg_typeof(substr(`null` FROM `int4` FOR `float4`)) from test_type_table;
select substr(`null` FROM `int4` FOR `float8`), pg_typeof(substr(`null` FROM `int4` FOR `float8`)) from test_type_table;
select substr(`null` FROM `int4` FOR `numeric`), pg_typeof(substr(`null` FROM `int4` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `int4` FOR `null`), pg_typeof(substr(`null` FROM `int4` FOR `null`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `int1`), pg_typeof(substr(`null` FROM `uint4` FOR `int1`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `uint1`), pg_typeof(substr(`null` FROM `uint4` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `int2`), pg_typeof(substr(`null` FROM `uint4` FOR `int2`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `uint2`), pg_typeof(substr(`null` FROM `uint4` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `int4`), pg_typeof(substr(`null` FROM `uint4` FOR `int4`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `uint4`), pg_typeof(substr(`null` FROM `uint4` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `int8`), pg_typeof(substr(`null` FROM `uint4` FOR `int8`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `uint8`), pg_typeof(substr(`null` FROM `uint4` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `float4`), pg_typeof(substr(`null` FROM `uint4` FOR `float4`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `float8`), pg_typeof(substr(`null` FROM `uint4` FOR `float8`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `numeric`), pg_typeof(substr(`null` FROM `uint4` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `uint4` FOR `null`), pg_typeof(substr(`null` FROM `uint4` FOR `null`)) from test_type_table;
select substr(`null` FROM `int8` FOR `int1`), pg_typeof(substr(`null` FROM `int8` FOR `int1`)) from test_type_table;
select substr(`null` FROM `int8` FOR `uint1`), pg_typeof(substr(`null` FROM `int8` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `int8` FOR `int2`), pg_typeof(substr(`null` FROM `int8` FOR `int2`)) from test_type_table;
select substr(`null` FROM `int8` FOR `uint2`), pg_typeof(substr(`null` FROM `int8` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `int8` FOR `int4`), pg_typeof(substr(`null` FROM `int8` FOR `int4`)) from test_type_table;
select substr(`null` FROM `int8` FOR `uint4`), pg_typeof(substr(`null` FROM `int8` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `int8` FOR `int8`), pg_typeof(substr(`null` FROM `int8` FOR `int8`)) from test_type_table;
select substr(`null` FROM `int8` FOR `uint8`), pg_typeof(substr(`null` FROM `int8` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `int8` FOR `float4`), pg_typeof(substr(`null` FROM `int8` FOR `float4`)) from test_type_table;
select substr(`null` FROM `int8` FOR `float8`), pg_typeof(substr(`null` FROM `int8` FOR `float8`)) from test_type_table;
select substr(`null` FROM `int8` FOR `numeric`), pg_typeof(substr(`null` FROM `int8` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `int8` FOR `null`), pg_typeof(substr(`null` FROM `int8` FOR `null`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `int1`), pg_typeof(substr(`null` FROM `uint8` FOR `int1`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `uint1`), pg_typeof(substr(`null` FROM `uint8` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `int2`), pg_typeof(substr(`null` FROM `uint8` FOR `int2`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `uint2`), pg_typeof(substr(`null` FROM `uint8` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `int4`), pg_typeof(substr(`null` FROM `uint8` FOR `int4`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `uint4`), pg_typeof(substr(`null` FROM `uint8` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `int8`), pg_typeof(substr(`null` FROM `uint8` FOR `int8`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `uint8`), pg_typeof(substr(`null` FROM `uint8` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `float4`), pg_typeof(substr(`null` FROM `uint8` FOR `float4`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `float8`), pg_typeof(substr(`null` FROM `uint8` FOR `float8`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `numeric`), pg_typeof(substr(`null` FROM `uint8` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `uint8` FOR `null`), pg_typeof(substr(`null` FROM `uint8` FOR `null`)) from test_type_table;
select substr(`null` FROM `float4` FOR `int1`), pg_typeof(substr(`null` FROM `float4` FOR `int1`)) from test_type_table;
select substr(`null` FROM `float4` FOR `uint1`), pg_typeof(substr(`null` FROM `float4` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `float4` FOR `int2`), pg_typeof(substr(`null` FROM `float4` FOR `int2`)) from test_type_table;
select substr(`null` FROM `float4` FOR `uint2`), pg_typeof(substr(`null` FROM `float4` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `float4` FOR `int4`), pg_typeof(substr(`null` FROM `float4` FOR `int4`)) from test_type_table;
select substr(`null` FROM `float4` FOR `uint4`), pg_typeof(substr(`null` FROM `float4` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `float4` FOR `int8`), pg_typeof(substr(`null` FROM `float4` FOR `int8`)) from test_type_table;
select substr(`null` FROM `float4` FOR `uint8`), pg_typeof(substr(`null` FROM `float4` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `float4` FOR `float4`), pg_typeof(substr(`null` FROM `float4` FOR `float4`)) from test_type_table;
select substr(`null` FROM `float4` FOR `float8`), pg_typeof(substr(`null` FROM `float4` FOR `float8`)) from test_type_table;
select substr(`null` FROM `float4` FOR `numeric`), pg_typeof(substr(`null` FROM `float4` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `float4` FOR `null`), pg_typeof(substr(`null` FROM `float4` FOR `null`)) from test_type_table;
select substr(`null` FROM `float8` FOR `int1`), pg_typeof(substr(`null` FROM `float8` FOR `int1`)) from test_type_table;
select substr(`null` FROM `float8` FOR `uint1`), pg_typeof(substr(`null` FROM `float8` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `float8` FOR `int2`), pg_typeof(substr(`null` FROM `float8` FOR `int2`)) from test_type_table;
select substr(`null` FROM `float8` FOR `uint2`), pg_typeof(substr(`null` FROM `float8` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `float8` FOR `int4`), pg_typeof(substr(`null` FROM `float8` FOR `int4`)) from test_type_table;
select substr(`null` FROM `float8` FOR `uint4`), pg_typeof(substr(`null` FROM `float8` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `float8` FOR `int8`), pg_typeof(substr(`null` FROM `float8` FOR `int8`)) from test_type_table;
select substr(`null` FROM `float8` FOR `uint8`), pg_typeof(substr(`null` FROM `float8` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `float8` FOR `float4`), pg_typeof(substr(`null` FROM `float8` FOR `float4`)) from test_type_table;
select substr(`null` FROM `float8` FOR `float8`), pg_typeof(substr(`null` FROM `float8` FOR `float8`)) from test_type_table;
select substr(`null` FROM `float8` FOR `numeric`), pg_typeof(substr(`null` FROM `float8` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `float8` FOR `null`), pg_typeof(substr(`null` FROM `float8` FOR `null`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `int1`), pg_typeof(substr(`null` FROM `numeric` FOR `int1`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `uint1`), pg_typeof(substr(`null` FROM `numeric` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `int2`), pg_typeof(substr(`null` FROM `numeric` FOR `int2`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `uint2`), pg_typeof(substr(`null` FROM `numeric` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `int4`), pg_typeof(substr(`null` FROM `numeric` FOR `int4`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `uint4`), pg_typeof(substr(`null` FROM `numeric` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `int8`), pg_typeof(substr(`null` FROM `numeric` FOR `int8`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `uint8`), pg_typeof(substr(`null` FROM `numeric` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `float4`), pg_typeof(substr(`null` FROM `numeric` FOR `float4`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `float8`), pg_typeof(substr(`null` FROM `numeric` FOR `float8`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `numeric`), pg_typeof(substr(`null` FROM `numeric` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `numeric` FOR `null`), pg_typeof(substr(`null` FROM `numeric` FOR `null`)) from test_type_table;
select substr(`null` FROM `null` FOR `int1`), pg_typeof(substr(`null` FROM `null` FOR `int1`)) from test_type_table;
select substr(`null` FROM `null` FOR `uint1`), pg_typeof(substr(`null` FROM `null` FOR `uint1`)) from test_type_table;
select substr(`null` FROM `null` FOR `int2`), pg_typeof(substr(`null` FROM `null` FOR `int2`)) from test_type_table;
select substr(`null` FROM `null` FOR `uint2`), pg_typeof(substr(`null` FROM `null` FOR `uint2`)) from test_type_table;
select substr(`null` FROM `null` FOR `int4`), pg_typeof(substr(`null` FROM `null` FOR `int4`)) from test_type_table;
select substr(`null` FROM `null` FOR `uint4`), pg_typeof(substr(`null` FROM `null` FOR `uint4`)) from test_type_table;
select substr(`null` FROM `null` FOR `int8`), pg_typeof(substr(`null` FROM `null` FOR `int8`)) from test_type_table;
select substr(`null` FROM `null` FOR `uint8`), pg_typeof(substr(`null` FROM `null` FOR `uint8`)) from test_type_table;
select substr(`null` FROM `null` FOR `float4`), pg_typeof(substr(`null` FROM `null` FOR `float4`)) from test_type_table;
select substr(`null` FROM `null` FOR `float8`), pg_typeof(substr(`null` FROM `null` FOR `float8`)) from test_type_table;
select substr(`null` FROM `null` FOR `numeric`), pg_typeof(substr(`null` FROM `null` FOR `numeric`)) from test_type_table;
select substr(`null` FROM `null` FOR `null`), pg_typeof(substr(`null` FROM `null` FOR `null`)) from test_type_table;
select substring(`char` FROM `int1` FOR `int1`), pg_typeof(substring(`char` FROM `int1` FOR `int1`)) from test_type_table;
select substring(`char` FROM `int1` FOR `uint1`), pg_typeof(substring(`char` FROM `int1` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `int1` FOR `int2`), pg_typeof(substring(`char` FROM `int1` FOR `int2`)) from test_type_table;
select substring(`char` FROM `int1` FOR `uint2`), pg_typeof(substring(`char` FROM `int1` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `int1` FOR `int4`), pg_typeof(substring(`char` FROM `int1` FOR `int4`)) from test_type_table;
select substring(`char` FROM `int1` FOR `uint4`), pg_typeof(substring(`char` FROM `int1` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `int1` FOR `int8`), pg_typeof(substring(`char` FROM `int1` FOR `int8`)) from test_type_table;
select substring(`char` FROM `int1` FOR `uint8`), pg_typeof(substring(`char` FROM `int1` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `int1` FOR `float4`), pg_typeof(substring(`char` FROM `int1` FOR `float4`)) from test_type_table;
select substring(`char` FROM `int1` FOR `float8`), pg_typeof(substring(`char` FROM `int1` FOR `float8`)) from test_type_table;
select substring(`char` FROM `int1` FOR `numeric`), pg_typeof(substring(`char` FROM `int1` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `int1` FOR `null`), pg_typeof(substring(`char` FROM `int1` FOR `null`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `int1`), pg_typeof(substring(`char` FROM `uint1` FOR `int1`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `uint1`), pg_typeof(substring(`char` FROM `uint1` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `int2`), pg_typeof(substring(`char` FROM `uint1` FOR `int2`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `uint2`), pg_typeof(substring(`char` FROM `uint1` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `int4`), pg_typeof(substring(`char` FROM `uint1` FOR `int4`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `uint4`), pg_typeof(substring(`char` FROM `uint1` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `int8`), pg_typeof(substring(`char` FROM `uint1` FOR `int8`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `uint8`), pg_typeof(substring(`char` FROM `uint1` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `float4`), pg_typeof(substring(`char` FROM `uint1` FOR `float4`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `float8`), pg_typeof(substring(`char` FROM `uint1` FOR `float8`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `numeric`), pg_typeof(substring(`char` FROM `uint1` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `uint1` FOR `null`), pg_typeof(substring(`char` FROM `uint1` FOR `null`)) from test_type_table;
select substring(`char` FROM `int2` FOR `int1`), pg_typeof(substring(`char` FROM `int2` FOR `int1`)) from test_type_table;
select substring(`char` FROM `int2` FOR `uint1`), pg_typeof(substring(`char` FROM `int2` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `int2` FOR `int2`), pg_typeof(substring(`char` FROM `int2` FOR `int2`)) from test_type_table;
select substring(`char` FROM `int2` FOR `uint2`), pg_typeof(substring(`char` FROM `int2` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `int2` FOR `int4`), pg_typeof(substring(`char` FROM `int2` FOR `int4`)) from test_type_table;
select substring(`char` FROM `int2` FOR `uint4`), pg_typeof(substring(`char` FROM `int2` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `int2` FOR `int8`), pg_typeof(substring(`char` FROM `int2` FOR `int8`)) from test_type_table;
select substring(`char` FROM `int2` FOR `uint8`), pg_typeof(substring(`char` FROM `int2` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `int2` FOR `float4`), pg_typeof(substring(`char` FROM `int2` FOR `float4`)) from test_type_table;
select substring(`char` FROM `int2` FOR `float8`), pg_typeof(substring(`char` FROM `int2` FOR `float8`)) from test_type_table;
select substring(`char` FROM `int2` FOR `numeric`), pg_typeof(substring(`char` FROM `int2` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `int2` FOR `null`), pg_typeof(substring(`char` FROM `int2` FOR `null`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `int1`), pg_typeof(substring(`char` FROM `uint2` FOR `int1`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `uint1`), pg_typeof(substring(`char` FROM `uint2` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `int2`), pg_typeof(substring(`char` FROM `uint2` FOR `int2`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `uint2`), pg_typeof(substring(`char` FROM `uint2` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `int4`), pg_typeof(substring(`char` FROM `uint2` FOR `int4`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `uint4`), pg_typeof(substring(`char` FROM `uint2` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `int8`), pg_typeof(substring(`char` FROM `uint2` FOR `int8`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `uint8`), pg_typeof(substring(`char` FROM `uint2` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `float4`), pg_typeof(substring(`char` FROM `uint2` FOR `float4`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `float8`), pg_typeof(substring(`char` FROM `uint2` FOR `float8`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `numeric`), pg_typeof(substring(`char` FROM `uint2` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `uint2` FOR `null`), pg_typeof(substring(`char` FROM `uint2` FOR `null`)) from test_type_table;
select substring(`char` FROM `int4` FOR `int1`), pg_typeof(substring(`char` FROM `int4` FOR `int1`)) from test_type_table;
select substring(`char` FROM `int4` FOR `uint1`), pg_typeof(substring(`char` FROM `int4` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `int4` FOR `int2`), pg_typeof(substring(`char` FROM `int4` FOR `int2`)) from test_type_table;
select substring(`char` FROM `int4` FOR `uint2`), pg_typeof(substring(`char` FROM `int4` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `int4` FOR `int4`), pg_typeof(substring(`char` FROM `int4` FOR `int4`)) from test_type_table;
select substring(`char` FROM `int4` FOR `uint4`), pg_typeof(substring(`char` FROM `int4` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `int4` FOR `int8`), pg_typeof(substring(`char` FROM `int4` FOR `int8`)) from test_type_table;
select substring(`char` FROM `int4` FOR `uint8`), pg_typeof(substring(`char` FROM `int4` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `int4` FOR `float4`), pg_typeof(substring(`char` FROM `int4` FOR `float4`)) from test_type_table;
select substring(`char` FROM `int4` FOR `float8`), pg_typeof(substring(`char` FROM `int4` FOR `float8`)) from test_type_table;
select substring(`char` FROM `int4` FOR `numeric`), pg_typeof(substring(`char` FROM `int4` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `int4` FOR `null`), pg_typeof(substring(`char` FROM `int4` FOR `null`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `int1`), pg_typeof(substring(`char` FROM `uint4` FOR `int1`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `uint1`), pg_typeof(substring(`char` FROM `uint4` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `int2`), pg_typeof(substring(`char` FROM `uint4` FOR `int2`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `uint2`), pg_typeof(substring(`char` FROM `uint4` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `int4`), pg_typeof(substring(`char` FROM `uint4` FOR `int4`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `uint4`), pg_typeof(substring(`char` FROM `uint4` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `int8`), pg_typeof(substring(`char` FROM `uint4` FOR `int8`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `uint8`), pg_typeof(substring(`char` FROM `uint4` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `float4`), pg_typeof(substring(`char` FROM `uint4` FOR `float4`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `float8`), pg_typeof(substring(`char` FROM `uint4` FOR `float8`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `numeric`), pg_typeof(substring(`char` FROM `uint4` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `uint4` FOR `null`), pg_typeof(substring(`char` FROM `uint4` FOR `null`)) from test_type_table;
select substring(`char` FROM `int8` FOR `int1`), pg_typeof(substring(`char` FROM `int8` FOR `int1`)) from test_type_table;
select substring(`char` FROM `int8` FOR `uint1`), pg_typeof(substring(`char` FROM `int8` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `int8` FOR `int2`), pg_typeof(substring(`char` FROM `int8` FOR `int2`)) from test_type_table;
select substring(`char` FROM `int8` FOR `uint2`), pg_typeof(substring(`char` FROM `int8` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `int8` FOR `int4`), pg_typeof(substring(`char` FROM `int8` FOR `int4`)) from test_type_table;
select substring(`char` FROM `int8` FOR `uint4`), pg_typeof(substring(`char` FROM `int8` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `int8` FOR `int8`), pg_typeof(substring(`char` FROM `int8` FOR `int8`)) from test_type_table;
select substring(`char` FROM `int8` FOR `uint8`), pg_typeof(substring(`char` FROM `int8` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `int8` FOR `float4`), pg_typeof(substring(`char` FROM `int8` FOR `float4`)) from test_type_table;
select substring(`char` FROM `int8` FOR `float8`), pg_typeof(substring(`char` FROM `int8` FOR `float8`)) from test_type_table;
select substring(`char` FROM `int8` FOR `numeric`), pg_typeof(substring(`char` FROM `int8` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `int8` FOR `null`), pg_typeof(substring(`char` FROM `int8` FOR `null`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `int1`), pg_typeof(substring(`char` FROM `uint8` FOR `int1`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `uint1`), pg_typeof(substring(`char` FROM `uint8` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `int2`), pg_typeof(substring(`char` FROM `uint8` FOR `int2`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `uint2`), pg_typeof(substring(`char` FROM `uint8` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `int4`), pg_typeof(substring(`char` FROM `uint8` FOR `int4`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `uint4`), pg_typeof(substring(`char` FROM `uint8` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `int8`), pg_typeof(substring(`char` FROM `uint8` FOR `int8`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `uint8`), pg_typeof(substring(`char` FROM `uint8` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `float4`), pg_typeof(substring(`char` FROM `uint8` FOR `float4`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `float8`), pg_typeof(substring(`char` FROM `uint8` FOR `float8`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `numeric`), pg_typeof(substring(`char` FROM `uint8` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `uint8` FOR `null`), pg_typeof(substring(`char` FROM `uint8` FOR `null`)) from test_type_table;
select substring(`char` FROM `float4` FOR `int1`), pg_typeof(substring(`char` FROM `float4` FOR `int1`)) from test_type_table;
select substring(`char` FROM `float4` FOR `uint1`), pg_typeof(substring(`char` FROM `float4` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `float4` FOR `int2`), pg_typeof(substring(`char` FROM `float4` FOR `int2`)) from test_type_table;
select substring(`char` FROM `float4` FOR `uint2`), pg_typeof(substring(`char` FROM `float4` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `float4` FOR `int4`), pg_typeof(substring(`char` FROM `float4` FOR `int4`)) from test_type_table;
select substring(`char` FROM `float4` FOR `uint4`), pg_typeof(substring(`char` FROM `float4` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `float4` FOR `int8`), pg_typeof(substring(`char` FROM `float4` FOR `int8`)) from test_type_table;
select substring(`char` FROM `float4` FOR `uint8`), pg_typeof(substring(`char` FROM `float4` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `float4` FOR `float4`), pg_typeof(substring(`char` FROM `float4` FOR `float4`)) from test_type_table;
select substring(`char` FROM `float4` FOR `float8`), pg_typeof(substring(`char` FROM `float4` FOR `float8`)) from test_type_table;
select substring(`char` FROM `float4` FOR `numeric`), pg_typeof(substring(`char` FROM `float4` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `float4` FOR `null`), pg_typeof(substring(`char` FROM `float4` FOR `null`)) from test_type_table;
select substring(`char` FROM `float8` FOR `int1`), pg_typeof(substring(`char` FROM `float8` FOR `int1`)) from test_type_table;
select substring(`char` FROM `float8` FOR `uint1`), pg_typeof(substring(`char` FROM `float8` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `float8` FOR `int2`), pg_typeof(substring(`char` FROM `float8` FOR `int2`)) from test_type_table;
select substring(`char` FROM `float8` FOR `uint2`), pg_typeof(substring(`char` FROM `float8` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `float8` FOR `int4`), pg_typeof(substring(`char` FROM `float8` FOR `int4`)) from test_type_table;
select substring(`char` FROM `float8` FOR `uint4`), pg_typeof(substring(`char` FROM `float8` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `float8` FOR `int8`), pg_typeof(substring(`char` FROM `float8` FOR `int8`)) from test_type_table;
select substring(`char` FROM `float8` FOR `uint8`), pg_typeof(substring(`char` FROM `float8` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `float8` FOR `float4`), pg_typeof(substring(`char` FROM `float8` FOR `float4`)) from test_type_table;
select substring(`char` FROM `float8` FOR `float8`), pg_typeof(substring(`char` FROM `float8` FOR `float8`)) from test_type_table;
select substring(`char` FROM `float8` FOR `numeric`), pg_typeof(substring(`char` FROM `float8` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `float8` FOR `null`), pg_typeof(substring(`char` FROM `float8` FOR `null`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `int1`), pg_typeof(substring(`char` FROM `numeric` FOR `int1`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `uint1`), pg_typeof(substring(`char` FROM `numeric` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `int2`), pg_typeof(substring(`char` FROM `numeric` FOR `int2`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `uint2`), pg_typeof(substring(`char` FROM `numeric` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `int4`), pg_typeof(substring(`char` FROM `numeric` FOR `int4`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `uint4`), pg_typeof(substring(`char` FROM `numeric` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `int8`), pg_typeof(substring(`char` FROM `numeric` FOR `int8`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `uint8`), pg_typeof(substring(`char` FROM `numeric` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `float4`), pg_typeof(substring(`char` FROM `numeric` FOR `float4`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `float8`), pg_typeof(substring(`char` FROM `numeric` FOR `float8`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `numeric`), pg_typeof(substring(`char` FROM `numeric` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `numeric` FOR `null`), pg_typeof(substring(`char` FROM `numeric` FOR `null`)) from test_type_table;
select substring(`char` FROM `null` FOR `int1`), pg_typeof(substring(`char` FROM `null` FOR `int1`)) from test_type_table;
select substring(`char` FROM `null` FOR `uint1`), pg_typeof(substring(`char` FROM `null` FOR `uint1`)) from test_type_table;
select substring(`char` FROM `null` FOR `int2`), pg_typeof(substring(`char` FROM `null` FOR `int2`)) from test_type_table;
select substring(`char` FROM `null` FOR `uint2`), pg_typeof(substring(`char` FROM `null` FOR `uint2`)) from test_type_table;
select substring(`char` FROM `null` FOR `int4`), pg_typeof(substring(`char` FROM `null` FOR `int4`)) from test_type_table;
select substring(`char` FROM `null` FOR `uint4`), pg_typeof(substring(`char` FROM `null` FOR `uint4`)) from test_type_table;
select substring(`char` FROM `null` FOR `int8`), pg_typeof(substring(`char` FROM `null` FOR `int8`)) from test_type_table;
select substring(`char` FROM `null` FOR `uint8`), pg_typeof(substring(`char` FROM `null` FOR `uint8`)) from test_type_table;
select substring(`char` FROM `null` FOR `float4`), pg_typeof(substring(`char` FROM `null` FOR `float4`)) from test_type_table;
select substring(`char` FROM `null` FOR `float8`), pg_typeof(substring(`char` FROM `null` FOR `float8`)) from test_type_table;
select substring(`char` FROM `null` FOR `numeric`), pg_typeof(substring(`char` FROM `null` FOR `numeric`)) from test_type_table;
select substring(`char` FROM `null` FOR `null`), pg_typeof(substring(`char` FROM `null` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `int1`), pg_typeof(substring(`varchar` FROM `int1` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `uint1`), pg_typeof(substring(`varchar` FROM `int1` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `int2`), pg_typeof(substring(`varchar` FROM `int1` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `uint2`), pg_typeof(substring(`varchar` FROM `int1` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `int4`), pg_typeof(substring(`varchar` FROM `int1` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `uint4`), pg_typeof(substring(`varchar` FROM `int1` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `int8`), pg_typeof(substring(`varchar` FROM `int1` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `uint8`), pg_typeof(substring(`varchar` FROM `int1` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `float4`), pg_typeof(substring(`varchar` FROM `int1` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `float8`), pg_typeof(substring(`varchar` FROM `int1` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `numeric`), pg_typeof(substring(`varchar` FROM `int1` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `int1` FOR `null`), pg_typeof(substring(`varchar` FROM `int1` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `int1`), pg_typeof(substring(`varchar` FROM `uint1` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `uint1`), pg_typeof(substring(`varchar` FROM `uint1` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `int2`), pg_typeof(substring(`varchar` FROM `uint1` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `uint2`), pg_typeof(substring(`varchar` FROM `uint1` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `int4`), pg_typeof(substring(`varchar` FROM `uint1` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `uint4`), pg_typeof(substring(`varchar` FROM `uint1` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `int8`), pg_typeof(substring(`varchar` FROM `uint1` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `uint8`), pg_typeof(substring(`varchar` FROM `uint1` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `float4`), pg_typeof(substring(`varchar` FROM `uint1` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `float8`), pg_typeof(substring(`varchar` FROM `uint1` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `numeric`), pg_typeof(substring(`varchar` FROM `uint1` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `uint1` FOR `null`), pg_typeof(substring(`varchar` FROM `uint1` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `int1`), pg_typeof(substring(`varchar` FROM `int2` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `uint1`), pg_typeof(substring(`varchar` FROM `int2` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `int2`), pg_typeof(substring(`varchar` FROM `int2` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `uint2`), pg_typeof(substring(`varchar` FROM `int2` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `int4`), pg_typeof(substring(`varchar` FROM `int2` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `uint4`), pg_typeof(substring(`varchar` FROM `int2` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `int8`), pg_typeof(substring(`varchar` FROM `int2` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `uint8`), pg_typeof(substring(`varchar` FROM `int2` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `float4`), pg_typeof(substring(`varchar` FROM `int2` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `float8`), pg_typeof(substring(`varchar` FROM `int2` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `numeric`), pg_typeof(substring(`varchar` FROM `int2` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `int2` FOR `null`), pg_typeof(substring(`varchar` FROM `int2` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `int1`), pg_typeof(substring(`varchar` FROM `uint2` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `uint1`), pg_typeof(substring(`varchar` FROM `uint2` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `int2`), pg_typeof(substring(`varchar` FROM `uint2` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `uint2`), pg_typeof(substring(`varchar` FROM `uint2` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `int4`), pg_typeof(substring(`varchar` FROM `uint2` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `uint4`), pg_typeof(substring(`varchar` FROM `uint2` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `int8`), pg_typeof(substring(`varchar` FROM `uint2` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `uint8`), pg_typeof(substring(`varchar` FROM `uint2` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `float4`), pg_typeof(substring(`varchar` FROM `uint2` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `float8`), pg_typeof(substring(`varchar` FROM `uint2` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `numeric`), pg_typeof(substring(`varchar` FROM `uint2` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `uint2` FOR `null`), pg_typeof(substring(`varchar` FROM `uint2` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `int1`), pg_typeof(substring(`varchar` FROM `int4` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `uint1`), pg_typeof(substring(`varchar` FROM `int4` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `int2`), pg_typeof(substring(`varchar` FROM `int4` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `uint2`), pg_typeof(substring(`varchar` FROM `int4` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `int4`), pg_typeof(substring(`varchar` FROM `int4` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `uint4`), pg_typeof(substring(`varchar` FROM `int4` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `int8`), pg_typeof(substring(`varchar` FROM `int4` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `uint8`), pg_typeof(substring(`varchar` FROM `int4` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `float4`), pg_typeof(substring(`varchar` FROM `int4` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `float8`), pg_typeof(substring(`varchar` FROM `int4` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `numeric`), pg_typeof(substring(`varchar` FROM `int4` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `int4` FOR `null`), pg_typeof(substring(`varchar` FROM `int4` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `int1`), pg_typeof(substring(`varchar` FROM `uint4` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `uint1`), pg_typeof(substring(`varchar` FROM `uint4` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `int2`), pg_typeof(substring(`varchar` FROM `uint4` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `uint2`), pg_typeof(substring(`varchar` FROM `uint4` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `int4`), pg_typeof(substring(`varchar` FROM `uint4` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `uint4`), pg_typeof(substring(`varchar` FROM `uint4` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `int8`), pg_typeof(substring(`varchar` FROM `uint4` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `uint8`), pg_typeof(substring(`varchar` FROM `uint4` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `float4`), pg_typeof(substring(`varchar` FROM `uint4` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `float8`), pg_typeof(substring(`varchar` FROM `uint4` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `numeric`), pg_typeof(substring(`varchar` FROM `uint4` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `uint4` FOR `null`), pg_typeof(substring(`varchar` FROM `uint4` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `int1`), pg_typeof(substring(`varchar` FROM `int8` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `uint1`), pg_typeof(substring(`varchar` FROM `int8` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `int2`), pg_typeof(substring(`varchar` FROM `int8` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `uint2`), pg_typeof(substring(`varchar` FROM `int8` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `int4`), pg_typeof(substring(`varchar` FROM `int8` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `uint4`), pg_typeof(substring(`varchar` FROM `int8` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `int8`), pg_typeof(substring(`varchar` FROM `int8` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `uint8`), pg_typeof(substring(`varchar` FROM `int8` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `float4`), pg_typeof(substring(`varchar` FROM `int8` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `float8`), pg_typeof(substring(`varchar` FROM `int8` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `numeric`), pg_typeof(substring(`varchar` FROM `int8` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `int8` FOR `null`), pg_typeof(substring(`varchar` FROM `int8` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `int1`), pg_typeof(substring(`varchar` FROM `uint8` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `uint1`), pg_typeof(substring(`varchar` FROM `uint8` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `int2`), pg_typeof(substring(`varchar` FROM `uint8` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `uint2`), pg_typeof(substring(`varchar` FROM `uint8` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `int4`), pg_typeof(substring(`varchar` FROM `uint8` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `uint4`), pg_typeof(substring(`varchar` FROM `uint8` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `int8`), pg_typeof(substring(`varchar` FROM `uint8` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `uint8`), pg_typeof(substring(`varchar` FROM `uint8` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `float4`), pg_typeof(substring(`varchar` FROM `uint8` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `float8`), pg_typeof(substring(`varchar` FROM `uint8` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `numeric`), pg_typeof(substring(`varchar` FROM `uint8` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `uint8` FOR `null`), pg_typeof(substring(`varchar` FROM `uint8` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `int1`), pg_typeof(substring(`varchar` FROM `float4` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `uint1`), pg_typeof(substring(`varchar` FROM `float4` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `int2`), pg_typeof(substring(`varchar` FROM `float4` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `uint2`), pg_typeof(substring(`varchar` FROM `float4` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `int4`), pg_typeof(substring(`varchar` FROM `float4` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `uint4`), pg_typeof(substring(`varchar` FROM `float4` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `int8`), pg_typeof(substring(`varchar` FROM `float4` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `uint8`), pg_typeof(substring(`varchar` FROM `float4` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `float4`), pg_typeof(substring(`varchar` FROM `float4` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `float8`), pg_typeof(substring(`varchar` FROM `float4` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `numeric`), pg_typeof(substring(`varchar` FROM `float4` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `float4` FOR `null`), pg_typeof(substring(`varchar` FROM `float4` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `int1`), pg_typeof(substring(`varchar` FROM `float8` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `uint1`), pg_typeof(substring(`varchar` FROM `float8` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `int2`), pg_typeof(substring(`varchar` FROM `float8` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `uint2`), pg_typeof(substring(`varchar` FROM `float8` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `int4`), pg_typeof(substring(`varchar` FROM `float8` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `uint4`), pg_typeof(substring(`varchar` FROM `float8` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `int8`), pg_typeof(substring(`varchar` FROM `float8` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `uint8`), pg_typeof(substring(`varchar` FROM `float8` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `float4`), pg_typeof(substring(`varchar` FROM `float8` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `float8`), pg_typeof(substring(`varchar` FROM `float8` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `numeric`), pg_typeof(substring(`varchar` FROM `float8` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `float8` FOR `null`), pg_typeof(substring(`varchar` FROM `float8` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `int1`), pg_typeof(substring(`varchar` FROM `numeric` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `uint1`), pg_typeof(substring(`varchar` FROM `numeric` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `int2`), pg_typeof(substring(`varchar` FROM `numeric` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `uint2`), pg_typeof(substring(`varchar` FROM `numeric` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `int4`), pg_typeof(substring(`varchar` FROM `numeric` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `uint4`), pg_typeof(substring(`varchar` FROM `numeric` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `int8`), pg_typeof(substring(`varchar` FROM `numeric` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `uint8`), pg_typeof(substring(`varchar` FROM `numeric` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `float4`), pg_typeof(substring(`varchar` FROM `numeric` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `float8`), pg_typeof(substring(`varchar` FROM `numeric` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `numeric`), pg_typeof(substring(`varchar` FROM `numeric` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `numeric` FOR `null`), pg_typeof(substring(`varchar` FROM `numeric` FOR `null`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `int1`), pg_typeof(substring(`varchar` FROM `null` FOR `int1`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `uint1`), pg_typeof(substring(`varchar` FROM `null` FOR `uint1`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `int2`), pg_typeof(substring(`varchar` FROM `null` FOR `int2`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `uint2`), pg_typeof(substring(`varchar` FROM `null` FOR `uint2`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `int4`), pg_typeof(substring(`varchar` FROM `null` FOR `int4`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `uint4`), pg_typeof(substring(`varchar` FROM `null` FOR `uint4`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `int8`), pg_typeof(substring(`varchar` FROM `null` FOR `int8`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `uint8`), pg_typeof(substring(`varchar` FROM `null` FOR `uint8`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `float4`), pg_typeof(substring(`varchar` FROM `null` FOR `float4`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `float8`), pg_typeof(substring(`varchar` FROM `null` FOR `float8`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `numeric`), pg_typeof(substring(`varchar` FROM `null` FOR `numeric`)) from test_type_table;
select substring(`varchar` FROM `null` FOR `null`), pg_typeof(substring(`varchar` FROM `null` FOR `null`)) from test_type_table;
select substring(`text` FROM `int1` FOR `int1`), pg_typeof(substring(`text` FROM `int1` FOR `int1`)) from test_type_table;
select substring(`text` FROM `int1` FOR `uint1`), pg_typeof(substring(`text` FROM `int1` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `int1` FOR `int2`), pg_typeof(substring(`text` FROM `int1` FOR `int2`)) from test_type_table;
select substring(`text` FROM `int1` FOR `uint2`), pg_typeof(substring(`text` FROM `int1` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `int1` FOR `int4`), pg_typeof(substring(`text` FROM `int1` FOR `int4`)) from test_type_table;
select substring(`text` FROM `int1` FOR `uint4`), pg_typeof(substring(`text` FROM `int1` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `int1` FOR `int8`), pg_typeof(substring(`text` FROM `int1` FOR `int8`)) from test_type_table;
select substring(`text` FROM `int1` FOR `uint8`), pg_typeof(substring(`text` FROM `int1` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `int1` FOR `float4`), pg_typeof(substring(`text` FROM `int1` FOR `float4`)) from test_type_table;
select substring(`text` FROM `int1` FOR `float8`), pg_typeof(substring(`text` FROM `int1` FOR `float8`)) from test_type_table;
select substring(`text` FROM `int1` FOR `numeric`), pg_typeof(substring(`text` FROM `int1` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `int1` FOR `null`), pg_typeof(substring(`text` FROM `int1` FOR `null`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `int1`), pg_typeof(substring(`text` FROM `uint1` FOR `int1`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `uint1`), pg_typeof(substring(`text` FROM `uint1` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `int2`), pg_typeof(substring(`text` FROM `uint1` FOR `int2`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `uint2`), pg_typeof(substring(`text` FROM `uint1` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `int4`), pg_typeof(substring(`text` FROM `uint1` FOR `int4`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `uint4`), pg_typeof(substring(`text` FROM `uint1` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `int8`), pg_typeof(substring(`text` FROM `uint1` FOR `int8`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `uint8`), pg_typeof(substring(`text` FROM `uint1` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `float4`), pg_typeof(substring(`text` FROM `uint1` FOR `float4`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `float8`), pg_typeof(substring(`text` FROM `uint1` FOR `float8`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `numeric`), pg_typeof(substring(`text` FROM `uint1` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `uint1` FOR `null`), pg_typeof(substring(`text` FROM `uint1` FOR `null`)) from test_type_table;
select substring(`text` FROM `int2` FOR `int1`), pg_typeof(substring(`text` FROM `int2` FOR `int1`)) from test_type_table;
select substring(`text` FROM `int2` FOR `uint1`), pg_typeof(substring(`text` FROM `int2` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `int2` FOR `int2`), pg_typeof(substring(`text` FROM `int2` FOR `int2`)) from test_type_table;
select substring(`text` FROM `int2` FOR `uint2`), pg_typeof(substring(`text` FROM `int2` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `int2` FOR `int4`), pg_typeof(substring(`text` FROM `int2` FOR `int4`)) from test_type_table;
select substring(`text` FROM `int2` FOR `uint4`), pg_typeof(substring(`text` FROM `int2` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `int2` FOR `int8`), pg_typeof(substring(`text` FROM `int2` FOR `int8`)) from test_type_table;
select substring(`text` FROM `int2` FOR `uint8`), pg_typeof(substring(`text` FROM `int2` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `int2` FOR `float4`), pg_typeof(substring(`text` FROM `int2` FOR `float4`)) from test_type_table;
select substring(`text` FROM `int2` FOR `float8`), pg_typeof(substring(`text` FROM `int2` FOR `float8`)) from test_type_table;
select substring(`text` FROM `int2` FOR `numeric`), pg_typeof(substring(`text` FROM `int2` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `int2` FOR `null`), pg_typeof(substring(`text` FROM `int2` FOR `null`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `int1`), pg_typeof(substring(`text` FROM `uint2` FOR `int1`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `uint1`), pg_typeof(substring(`text` FROM `uint2` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `int2`), pg_typeof(substring(`text` FROM `uint2` FOR `int2`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `uint2`), pg_typeof(substring(`text` FROM `uint2` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `int4`), pg_typeof(substring(`text` FROM `uint2` FOR `int4`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `uint4`), pg_typeof(substring(`text` FROM `uint2` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `int8`), pg_typeof(substring(`text` FROM `uint2` FOR `int8`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `uint8`), pg_typeof(substring(`text` FROM `uint2` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `float4`), pg_typeof(substring(`text` FROM `uint2` FOR `float4`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `float8`), pg_typeof(substring(`text` FROM `uint2` FOR `float8`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `numeric`), pg_typeof(substring(`text` FROM `uint2` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `uint2` FOR `null`), pg_typeof(substring(`text` FROM `uint2` FOR `null`)) from test_type_table;
select substring(`text` FROM `int4` FOR `int1`), pg_typeof(substring(`text` FROM `int4` FOR `int1`)) from test_type_table;
select substring(`text` FROM `int4` FOR `uint1`), pg_typeof(substring(`text` FROM `int4` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `int4` FOR `int2`), pg_typeof(substring(`text` FROM `int4` FOR `int2`)) from test_type_table;
select substring(`text` FROM `int4` FOR `uint2`), pg_typeof(substring(`text` FROM `int4` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `int4` FOR `int4`), pg_typeof(substring(`text` FROM `int4` FOR `int4`)) from test_type_table;
select substring(`text` FROM `int4` FOR `uint4`), pg_typeof(substring(`text` FROM `int4` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `int4` FOR `int8`), pg_typeof(substring(`text` FROM `int4` FOR `int8`)) from test_type_table;
select substring(`text` FROM `int4` FOR `uint8`), pg_typeof(substring(`text` FROM `int4` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `int4` FOR `float4`), pg_typeof(substring(`text` FROM `int4` FOR `float4`)) from test_type_table;
select substring(`text` FROM `int4` FOR `float8`), pg_typeof(substring(`text` FROM `int4` FOR `float8`)) from test_type_table;
select substring(`text` FROM `int4` FOR `numeric`), pg_typeof(substring(`text` FROM `int4` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `int4` FOR `null`), pg_typeof(substring(`text` FROM `int4` FOR `null`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `int1`), pg_typeof(substring(`text` FROM `uint4` FOR `int1`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `uint1`), pg_typeof(substring(`text` FROM `uint4` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `int2`), pg_typeof(substring(`text` FROM `uint4` FOR `int2`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `uint2`), pg_typeof(substring(`text` FROM `uint4` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `int4`), pg_typeof(substring(`text` FROM `uint4` FOR `int4`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `uint4`), pg_typeof(substring(`text` FROM `uint4` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `int8`), pg_typeof(substring(`text` FROM `uint4` FOR `int8`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `uint8`), pg_typeof(substring(`text` FROM `uint4` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `float4`), pg_typeof(substring(`text` FROM `uint4` FOR `float4`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `float8`), pg_typeof(substring(`text` FROM `uint4` FOR `float8`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `numeric`), pg_typeof(substring(`text` FROM `uint4` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `uint4` FOR `null`), pg_typeof(substring(`text` FROM `uint4` FOR `null`)) from test_type_table;
select substring(`text` FROM `int8` FOR `int1`), pg_typeof(substring(`text` FROM `int8` FOR `int1`)) from test_type_table;
select substring(`text` FROM `int8` FOR `uint1`), pg_typeof(substring(`text` FROM `int8` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `int8` FOR `int2`), pg_typeof(substring(`text` FROM `int8` FOR `int2`)) from test_type_table;
select substring(`text` FROM `int8` FOR `uint2`), pg_typeof(substring(`text` FROM `int8` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `int8` FOR `int4`), pg_typeof(substring(`text` FROM `int8` FOR `int4`)) from test_type_table;
select substring(`text` FROM `int8` FOR `uint4`), pg_typeof(substring(`text` FROM `int8` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `int8` FOR `int8`), pg_typeof(substring(`text` FROM `int8` FOR `int8`)) from test_type_table;
select substring(`text` FROM `int8` FOR `uint8`), pg_typeof(substring(`text` FROM `int8` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `int8` FOR `float4`), pg_typeof(substring(`text` FROM `int8` FOR `float4`)) from test_type_table;
select substring(`text` FROM `int8` FOR `float8`), pg_typeof(substring(`text` FROM `int8` FOR `float8`)) from test_type_table;
select substring(`text` FROM `int8` FOR `numeric`), pg_typeof(substring(`text` FROM `int8` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `int8` FOR `null`), pg_typeof(substring(`text` FROM `int8` FOR `null`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `int1`), pg_typeof(substring(`text` FROM `uint8` FOR `int1`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `uint1`), pg_typeof(substring(`text` FROM `uint8` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `int2`), pg_typeof(substring(`text` FROM `uint8` FOR `int2`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `uint2`), pg_typeof(substring(`text` FROM `uint8` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `int4`), pg_typeof(substring(`text` FROM `uint8` FOR `int4`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `uint4`), pg_typeof(substring(`text` FROM `uint8` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `int8`), pg_typeof(substring(`text` FROM `uint8` FOR `int8`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `uint8`), pg_typeof(substring(`text` FROM `uint8` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `float4`), pg_typeof(substring(`text` FROM `uint8` FOR `float4`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `float8`), pg_typeof(substring(`text` FROM `uint8` FOR `float8`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `numeric`), pg_typeof(substring(`text` FROM `uint8` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `uint8` FOR `null`), pg_typeof(substring(`text` FROM `uint8` FOR `null`)) from test_type_table;
select substring(`text` FROM `float4` FOR `int1`), pg_typeof(substring(`text` FROM `float4` FOR `int1`)) from test_type_table;
select substring(`text` FROM `float4` FOR `uint1`), pg_typeof(substring(`text` FROM `float4` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `float4` FOR `int2`), pg_typeof(substring(`text` FROM `float4` FOR `int2`)) from test_type_table;
select substring(`text` FROM `float4` FOR `uint2`), pg_typeof(substring(`text` FROM `float4` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `float4` FOR `int4`), pg_typeof(substring(`text` FROM `float4` FOR `int4`)) from test_type_table;
select substring(`text` FROM `float4` FOR `uint4`), pg_typeof(substring(`text` FROM `float4` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `float4` FOR `int8`), pg_typeof(substring(`text` FROM `float4` FOR `int8`)) from test_type_table;
select substring(`text` FROM `float4` FOR `uint8`), pg_typeof(substring(`text` FROM `float4` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `float4` FOR `float4`), pg_typeof(substring(`text` FROM `float4` FOR `float4`)) from test_type_table;
select substring(`text` FROM `float4` FOR `float8`), pg_typeof(substring(`text` FROM `float4` FOR `float8`)) from test_type_table;
select substring(`text` FROM `float4` FOR `numeric`), pg_typeof(substring(`text` FROM `float4` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `float4` FOR `null`), pg_typeof(substring(`text` FROM `float4` FOR `null`)) from test_type_table;
select substring(`text` FROM `float8` FOR `int1`), pg_typeof(substring(`text` FROM `float8` FOR `int1`)) from test_type_table;
select substring(`text` FROM `float8` FOR `uint1`), pg_typeof(substring(`text` FROM `float8` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `float8` FOR `int2`), pg_typeof(substring(`text` FROM `float8` FOR `int2`)) from test_type_table;
select substring(`text` FROM `float8` FOR `uint2`), pg_typeof(substring(`text` FROM `float8` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `float8` FOR `int4`), pg_typeof(substring(`text` FROM `float8` FOR `int4`)) from test_type_table;
select substring(`text` FROM `float8` FOR `uint4`), pg_typeof(substring(`text` FROM `float8` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `float8` FOR `int8`), pg_typeof(substring(`text` FROM `float8` FOR `int8`)) from test_type_table;
select substring(`text` FROM `float8` FOR `uint8`), pg_typeof(substring(`text` FROM `float8` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `float8` FOR `float4`), pg_typeof(substring(`text` FROM `float8` FOR `float4`)) from test_type_table;
select substring(`text` FROM `float8` FOR `float8`), pg_typeof(substring(`text` FROM `float8` FOR `float8`)) from test_type_table;
select substring(`text` FROM `float8` FOR `numeric`), pg_typeof(substring(`text` FROM `float8` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `float8` FOR `null`), pg_typeof(substring(`text` FROM `float8` FOR `null`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `int1`), pg_typeof(substring(`text` FROM `numeric` FOR `int1`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `uint1`), pg_typeof(substring(`text` FROM `numeric` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `int2`), pg_typeof(substring(`text` FROM `numeric` FOR `int2`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `uint2`), pg_typeof(substring(`text` FROM `numeric` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `int4`), pg_typeof(substring(`text` FROM `numeric` FOR `int4`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `uint4`), pg_typeof(substring(`text` FROM `numeric` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `int8`), pg_typeof(substring(`text` FROM `numeric` FOR `int8`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `uint8`), pg_typeof(substring(`text` FROM `numeric` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `float4`), pg_typeof(substring(`text` FROM `numeric` FOR `float4`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `float8`), pg_typeof(substring(`text` FROM `numeric` FOR `float8`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `numeric`), pg_typeof(substring(`text` FROM `numeric` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `numeric` FOR `null`), pg_typeof(substring(`text` FROM `numeric` FOR `null`)) from test_type_table;
select substring(`text` FROM `null` FOR `int1`), pg_typeof(substring(`text` FROM `null` FOR `int1`)) from test_type_table;
select substring(`text` FROM `null` FOR `uint1`), pg_typeof(substring(`text` FROM `null` FOR `uint1`)) from test_type_table;
select substring(`text` FROM `null` FOR `int2`), pg_typeof(substring(`text` FROM `null` FOR `int2`)) from test_type_table;
select substring(`text` FROM `null` FOR `uint2`), pg_typeof(substring(`text` FROM `null` FOR `uint2`)) from test_type_table;
select substring(`text` FROM `null` FOR `int4`), pg_typeof(substring(`text` FROM `null` FOR `int4`)) from test_type_table;
select substring(`text` FROM `null` FOR `uint4`), pg_typeof(substring(`text` FROM `null` FOR `uint4`)) from test_type_table;
select substring(`text` FROM `null` FOR `int8`), pg_typeof(substring(`text` FROM `null` FOR `int8`)) from test_type_table;
select substring(`text` FROM `null` FOR `uint8`), pg_typeof(substring(`text` FROM `null` FOR `uint8`)) from test_type_table;
select substring(`text` FROM `null` FOR `float4`), pg_typeof(substring(`text` FROM `null` FOR `float4`)) from test_type_table;
select substring(`text` FROM `null` FOR `float8`), pg_typeof(substring(`text` FROM `null` FOR `float8`)) from test_type_table;
select substring(`text` FROM `null` FOR `numeric`), pg_typeof(substring(`text` FROM `null` FOR `numeric`)) from test_type_table;
select substring(`text` FROM `null` FOR `null`), pg_typeof(substring(`text` FROM `null` FOR `null`)) from test_type_table;
select substring(`null` FROM `int1` FOR `int1`), pg_typeof(substring(`null` FROM `int1` FOR `int1`)) from test_type_table;
select substring(`null` FROM `int1` FOR `uint1`), pg_typeof(substring(`null` FROM `int1` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `int1` FOR `int2`), pg_typeof(substring(`null` FROM `int1` FOR `int2`)) from test_type_table;
select substring(`null` FROM `int1` FOR `uint2`), pg_typeof(substring(`null` FROM `int1` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `int1` FOR `int4`), pg_typeof(substring(`null` FROM `int1` FOR `int4`)) from test_type_table;
select substring(`null` FROM `int1` FOR `uint4`), pg_typeof(substring(`null` FROM `int1` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `int1` FOR `int8`), pg_typeof(substring(`null` FROM `int1` FOR `int8`)) from test_type_table;
select substring(`null` FROM `int1` FOR `uint8`), pg_typeof(substring(`null` FROM `int1` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `int1` FOR `float4`), pg_typeof(substring(`null` FROM `int1` FOR `float4`)) from test_type_table;
select substring(`null` FROM `int1` FOR `float8`), pg_typeof(substring(`null` FROM `int1` FOR `float8`)) from test_type_table;
select substring(`null` FROM `int1` FOR `numeric`), pg_typeof(substring(`null` FROM `int1` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `int1` FOR `null`), pg_typeof(substring(`null` FROM `int1` FOR `null`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `int1`), pg_typeof(substring(`null` FROM `uint1` FOR `int1`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `uint1`), pg_typeof(substring(`null` FROM `uint1` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `int2`), pg_typeof(substring(`null` FROM `uint1` FOR `int2`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `uint2`), pg_typeof(substring(`null` FROM `uint1` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `int4`), pg_typeof(substring(`null` FROM `uint1` FOR `int4`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `uint4`), pg_typeof(substring(`null` FROM `uint1` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `int8`), pg_typeof(substring(`null` FROM `uint1` FOR `int8`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `uint8`), pg_typeof(substring(`null` FROM `uint1` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `float4`), pg_typeof(substring(`null` FROM `uint1` FOR `float4`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `float8`), pg_typeof(substring(`null` FROM `uint1` FOR `float8`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `numeric`), pg_typeof(substring(`null` FROM `uint1` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `uint1` FOR `null`), pg_typeof(substring(`null` FROM `uint1` FOR `null`)) from test_type_table;
select substring(`null` FROM `int2` FOR `int1`), pg_typeof(substring(`null` FROM `int2` FOR `int1`)) from test_type_table;
select substring(`null` FROM `int2` FOR `uint1`), pg_typeof(substring(`null` FROM `int2` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `int2` FOR `int2`), pg_typeof(substring(`null` FROM `int2` FOR `int2`)) from test_type_table;
select substring(`null` FROM `int2` FOR `uint2`), pg_typeof(substring(`null` FROM `int2` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `int2` FOR `int4`), pg_typeof(substring(`null` FROM `int2` FOR `int4`)) from test_type_table;
select substring(`null` FROM `int2` FOR `uint4`), pg_typeof(substring(`null` FROM `int2` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `int2` FOR `int8`), pg_typeof(substring(`null` FROM `int2` FOR `int8`)) from test_type_table;
select substring(`null` FROM `int2` FOR `uint8`), pg_typeof(substring(`null` FROM `int2` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `int2` FOR `float4`), pg_typeof(substring(`null` FROM `int2` FOR `float4`)) from test_type_table;
select substring(`null` FROM `int2` FOR `float8`), pg_typeof(substring(`null` FROM `int2` FOR `float8`)) from test_type_table;
select substring(`null` FROM `int2` FOR `numeric`), pg_typeof(substring(`null` FROM `int2` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `int2` FOR `null`), pg_typeof(substring(`null` FROM `int2` FOR `null`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `int1`), pg_typeof(substring(`null` FROM `uint2` FOR `int1`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `uint1`), pg_typeof(substring(`null` FROM `uint2` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `int2`), pg_typeof(substring(`null` FROM `uint2` FOR `int2`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `uint2`), pg_typeof(substring(`null` FROM `uint2` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `int4`), pg_typeof(substring(`null` FROM `uint2` FOR `int4`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `uint4`), pg_typeof(substring(`null` FROM `uint2` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `int8`), pg_typeof(substring(`null` FROM `uint2` FOR `int8`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `uint8`), pg_typeof(substring(`null` FROM `uint2` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `float4`), pg_typeof(substring(`null` FROM `uint2` FOR `float4`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `float8`), pg_typeof(substring(`null` FROM `uint2` FOR `float8`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `numeric`), pg_typeof(substring(`null` FROM `uint2` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `uint2` FOR `null`), pg_typeof(substring(`null` FROM `uint2` FOR `null`)) from test_type_table;
select substring(`null` FROM `int4` FOR `int1`), pg_typeof(substring(`null` FROM `int4` FOR `int1`)) from test_type_table;
select substring(`null` FROM `int4` FOR `uint1`), pg_typeof(substring(`null` FROM `int4` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `int4` FOR `int2`), pg_typeof(substring(`null` FROM `int4` FOR `int2`)) from test_type_table;
select substring(`null` FROM `int4` FOR `uint2`), pg_typeof(substring(`null` FROM `int4` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `int4` FOR `int4`), pg_typeof(substring(`null` FROM `int4` FOR `int4`)) from test_type_table;
select substring(`null` FROM `int4` FOR `uint4`), pg_typeof(substring(`null` FROM `int4` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `int4` FOR `int8`), pg_typeof(substring(`null` FROM `int4` FOR `int8`)) from test_type_table;
select substring(`null` FROM `int4` FOR `uint8`), pg_typeof(substring(`null` FROM `int4` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `int4` FOR `float4`), pg_typeof(substring(`null` FROM `int4` FOR `float4`)) from test_type_table;
select substring(`null` FROM `int4` FOR `float8`), pg_typeof(substring(`null` FROM `int4` FOR `float8`)) from test_type_table;
select substring(`null` FROM `int4` FOR `numeric`), pg_typeof(substring(`null` FROM `int4` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `int4` FOR `null`), pg_typeof(substring(`null` FROM `int4` FOR `null`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `int1`), pg_typeof(substring(`null` FROM `uint4` FOR `int1`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `uint1`), pg_typeof(substring(`null` FROM `uint4` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `int2`), pg_typeof(substring(`null` FROM `uint4` FOR `int2`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `uint2`), pg_typeof(substring(`null` FROM `uint4` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `int4`), pg_typeof(substring(`null` FROM `uint4` FOR `int4`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `uint4`), pg_typeof(substring(`null` FROM `uint4` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `int8`), pg_typeof(substring(`null` FROM `uint4` FOR `int8`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `uint8`), pg_typeof(substring(`null` FROM `uint4` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `float4`), pg_typeof(substring(`null` FROM `uint4` FOR `float4`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `float8`), pg_typeof(substring(`null` FROM `uint4` FOR `float8`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `numeric`), pg_typeof(substring(`null` FROM `uint4` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `uint4` FOR `null`), pg_typeof(substring(`null` FROM `uint4` FOR `null`)) from test_type_table;
select substring(`null` FROM `int8` FOR `int1`), pg_typeof(substring(`null` FROM `int8` FOR `int1`)) from test_type_table;
select substring(`null` FROM `int8` FOR `uint1`), pg_typeof(substring(`null` FROM `int8` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `int8` FOR `int2`), pg_typeof(substring(`null` FROM `int8` FOR `int2`)) from test_type_table;
select substring(`null` FROM `int8` FOR `uint2`), pg_typeof(substring(`null` FROM `int8` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `int8` FOR `int4`), pg_typeof(substring(`null` FROM `int8` FOR `int4`)) from test_type_table;
select substring(`null` FROM `int8` FOR `uint4`), pg_typeof(substring(`null` FROM `int8` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `int8` FOR `int8`), pg_typeof(substring(`null` FROM `int8` FOR `int8`)) from test_type_table;
select substring(`null` FROM `int8` FOR `uint8`), pg_typeof(substring(`null` FROM `int8` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `int8` FOR `float4`), pg_typeof(substring(`null` FROM `int8` FOR `float4`)) from test_type_table;
select substring(`null` FROM `int8` FOR `float8`), pg_typeof(substring(`null` FROM `int8` FOR `float8`)) from test_type_table;
select substring(`null` FROM `int8` FOR `numeric`), pg_typeof(substring(`null` FROM `int8` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `int8` FOR `null`), pg_typeof(substring(`null` FROM `int8` FOR `null`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `int1`), pg_typeof(substring(`null` FROM `uint8` FOR `int1`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `uint1`), pg_typeof(substring(`null` FROM `uint8` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `int2`), pg_typeof(substring(`null` FROM `uint8` FOR `int2`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `uint2`), pg_typeof(substring(`null` FROM `uint8` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `int4`), pg_typeof(substring(`null` FROM `uint8` FOR `int4`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `uint4`), pg_typeof(substring(`null` FROM `uint8` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `int8`), pg_typeof(substring(`null` FROM `uint8` FOR `int8`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `uint8`), pg_typeof(substring(`null` FROM `uint8` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `float4`), pg_typeof(substring(`null` FROM `uint8` FOR `float4`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `float8`), pg_typeof(substring(`null` FROM `uint8` FOR `float8`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `numeric`), pg_typeof(substring(`null` FROM `uint8` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `uint8` FOR `null`), pg_typeof(substring(`null` FROM `uint8` FOR `null`)) from test_type_table;
select substring(`null` FROM `float4` FOR `int1`), pg_typeof(substring(`null` FROM `float4` FOR `int1`)) from test_type_table;
select substring(`null` FROM `float4` FOR `uint1`), pg_typeof(substring(`null` FROM `float4` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `float4` FOR `int2`), pg_typeof(substring(`null` FROM `float4` FOR `int2`)) from test_type_table;
select substring(`null` FROM `float4` FOR `uint2`), pg_typeof(substring(`null` FROM `float4` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `float4` FOR `int4`), pg_typeof(substring(`null` FROM `float4` FOR `int4`)) from test_type_table;
select substring(`null` FROM `float4` FOR `uint4`), pg_typeof(substring(`null` FROM `float4` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `float4` FOR `int8`), pg_typeof(substring(`null` FROM `float4` FOR `int8`)) from test_type_table;
select substring(`null` FROM `float4` FOR `uint8`), pg_typeof(substring(`null` FROM `float4` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `float4` FOR `float4`), pg_typeof(substring(`null` FROM `float4` FOR `float4`)) from test_type_table;
select substring(`null` FROM `float4` FOR `float8`), pg_typeof(substring(`null` FROM `float4` FOR `float8`)) from test_type_table;
select substring(`null` FROM `float4` FOR `numeric`), pg_typeof(substring(`null` FROM `float4` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `float4` FOR `null`), pg_typeof(substring(`null` FROM `float4` FOR `null`)) from test_type_table;
select substring(`null` FROM `float8` FOR `int1`), pg_typeof(substring(`null` FROM `float8` FOR `int1`)) from test_type_table;
select substring(`null` FROM `float8` FOR `uint1`), pg_typeof(substring(`null` FROM `float8` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `float8` FOR `int2`), pg_typeof(substring(`null` FROM `float8` FOR `int2`)) from test_type_table;
select substring(`null` FROM `float8` FOR `uint2`), pg_typeof(substring(`null` FROM `float8` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `float8` FOR `int4`), pg_typeof(substring(`null` FROM `float8` FOR `int4`)) from test_type_table;
select substring(`null` FROM `float8` FOR `uint4`), pg_typeof(substring(`null` FROM `float8` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `float8` FOR `int8`), pg_typeof(substring(`null` FROM `float8` FOR `int8`)) from test_type_table;
select substring(`null` FROM `float8` FOR `uint8`), pg_typeof(substring(`null` FROM `float8` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `float8` FOR `float4`), pg_typeof(substring(`null` FROM `float8` FOR `float4`)) from test_type_table;
select substring(`null` FROM `float8` FOR `float8`), pg_typeof(substring(`null` FROM `float8` FOR `float8`)) from test_type_table;
select substring(`null` FROM `float8` FOR `numeric`), pg_typeof(substring(`null` FROM `float8` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `float8` FOR `null`), pg_typeof(substring(`null` FROM `float8` FOR `null`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `int1`), pg_typeof(substring(`null` FROM `numeric` FOR `int1`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `uint1`), pg_typeof(substring(`null` FROM `numeric` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `int2`), pg_typeof(substring(`null` FROM `numeric` FOR `int2`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `uint2`), pg_typeof(substring(`null` FROM `numeric` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `int4`), pg_typeof(substring(`null` FROM `numeric` FOR `int4`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `uint4`), pg_typeof(substring(`null` FROM `numeric` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `int8`), pg_typeof(substring(`null` FROM `numeric` FOR `int8`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `uint8`), pg_typeof(substring(`null` FROM `numeric` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `float4`), pg_typeof(substring(`null` FROM `numeric` FOR `float4`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `float8`), pg_typeof(substring(`null` FROM `numeric` FOR `float8`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `numeric`), pg_typeof(substring(`null` FROM `numeric` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `numeric` FOR `null`), pg_typeof(substring(`null` FROM `numeric` FOR `null`)) from test_type_table;
select substring(`null` FROM `null` FOR `int1`), pg_typeof(substring(`null` FROM `null` FOR `int1`)) from test_type_table;
select substring(`null` FROM `null` FOR `uint1`), pg_typeof(substring(`null` FROM `null` FOR `uint1`)) from test_type_table;
select substring(`null` FROM `null` FOR `int2`), pg_typeof(substring(`null` FROM `null` FOR `int2`)) from test_type_table;
select substring(`null` FROM `null` FOR `uint2`), pg_typeof(substring(`null` FROM `null` FOR `uint2`)) from test_type_table;
select substring(`null` FROM `null` FOR `int4`), pg_typeof(substring(`null` FROM `null` FOR `int4`)) from test_type_table;
select substring(`null` FROM `null` FOR `uint4`), pg_typeof(substring(`null` FROM `null` FOR `uint4`)) from test_type_table;
select substring(`null` FROM `null` FOR `int8`), pg_typeof(substring(`null` FROM `null` FOR `int8`)) from test_type_table;
select substring(`null` FROM `null` FOR `uint8`), pg_typeof(substring(`null` FROM `null` FOR `uint8`)) from test_type_table;
select substring(`null` FROM `null` FOR `float4`), pg_typeof(substring(`null` FROM `null` FOR `float4`)) from test_type_table;
select substring(`null` FROM `null` FOR `float8`), pg_typeof(substring(`null` FROM `null` FOR `float8`)) from test_type_table;
select substring(`null` FROM `null` FOR `numeric`), pg_typeof(substring(`null` FROM `null` FOR `numeric`)) from test_type_table;
select substring(`null` FROM `null` FOR `null`), pg_typeof(substring(`null` FROM `null` FOR `null`)) from test_type_table;
drop schema db_b_substr_test cascade;
reset current_schema;