Skip to content

Commit 22ee447

Browse files
committed
textin and varcharin
Signed-off-by: TennyZhuang <[email protected]>
1 parent 1deefd2 commit 22ee447

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

e2e_test/batch/catalog/pg_type.slt.part

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ SELECT oid, typname, typelem, typnotnull, typtype, typinput FROM pg_catalog.pg_t
66
20 int8 0 f b int8in
77
21 int2 0 f b int2in
88
23 int4 0 f b int4in
9-
25 text 0 f b text_in
9+
25 text 0 f b textin
1010
700 float4 0 f b float4in
1111
701 float8 0 f b float8in
12-
1043 varchar 0 f b varchar_in
12+
1043 varchar 0 f b varcharin
1313
1082 date 0 f b date_in
1414
1083 time 0 f b time_in
1515
1114 timestamp 0 f b timestamp_in

src/common/src/types/postgres_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ macro_rules! for_all_base_types {
3737
{ Int32 | 23 | 1007 | int4 | int4in | 4 }
3838
{ Float32 | 700 | 1021 | float4 | float4in | 4 }
3939
{ Float64 | 701 | 1022 | float8 | float8in | 8 }
40-
{ Varchar | 1043 | 1015 | varchar | varchar_in | -1 }
40+
{ Varchar | 1043 | 1015 | varchar | varcharin | -1 }
4141
{ Date | 1082 | 1182 | date | date_in | 4 }
4242
{ Time | 1083 | 1183 | time | time_in | 8 }
4343
{ Timestamp | 1114 | 1115 | timestamp | timestamp_in | 8 }

src/frontend/src/catalog/system_catalog/rw_catalog/rw_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ macro_rules! impl_pg_type_data {
3131
)*
3232
// Note: rw doesn't support `text` type, returning it is just a workaround to be compatible
3333
// with PostgreSQL.
34-
(25, "text", "text_in"),
34+
(25, "text", "textin"),
3535
(1301, "rw_int256", "rw_int256_in"),
3636
]
3737
}

0 commit comments

Comments
 (0)