Skip to content

Commit 67b81e4

Browse files
authored
Update show commands type oid (#1357)
1 parent 3d9e10e commit 67b81e4

File tree

13 files changed

+19
-17
lines changed

13 files changed

+19
-17
lines changed

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/show.tables.with.newline/client.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ read advised zilla:flush ${pgsql:flushEx()
5858
.name("Name")
5959
.tableOid(0)
6060
.index(0)
61-
.typeOid(701)
61+
.typeOid(1043)
6262
.length(8)
6363
.modifier(-1)
6464
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/show.tables.with.newline/server.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ write advise zilla:flush ${pgsql:flushEx()
5656
.name("Name")
5757
.tableOid(0)
5858
.index(0)
59-
.typeOid(701)
59+
.typeOid(1043)
6060
.length(8)
6161
.modifier(-1)
6262
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/show.ztables/client.rpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ read advised zilla:flush ${pgsql:flushEx()
4242
.name("name")
4343
.tableOid(0)
4444
.index(0)
45-
.typeOid(701)
45+
.typeOid(1043)
4646
.length(8)
4747
.modifier(-1)
4848
.format("TEXT")
@@ -51,7 +51,7 @@ read advised zilla:flush ${pgsql:flushEx()
5151
.name("sql")
5252
.tableOid(0)
5353
.index(0)
54-
.typeOid(20)
54+
.typeOid(1043)
5555
.length(8)
5656
.modifier(-1)
5757
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/show.ztables/server.rpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ write advise zilla:flush ${pgsql:flushEx()
4444
.name("name")
4545
.tableOid(0)
4646
.index(0)
47-
.typeOid(701)
47+
.typeOid(1043)
4848
.length(8)
4949
.modifier(-1)
5050
.format("TEXT")
@@ -53,7 +53,7 @@ write advise zilla:flush ${pgsql:flushEx()
5353
.name("sql")
5454
.tableOid(0)
5555
.index(0)
56-
.typeOid(20)
56+
.typeOid(1043)
5757
.length(8)
5858
.modifier(-1)
5959
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/show.zviews/client.rpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ read advised zilla:flush ${pgsql:flushEx()
4242
.name("name")
4343
.tableOid(0)
4444
.index(0)
45-
.typeOid(701)
45+
.typeOid(1043)
4646
.length(8)
4747
.modifier(-1)
4848
.format("TEXT")
@@ -51,7 +51,7 @@ read advised zilla:flush ${pgsql:flushEx()
5151
.name("sql")
5252
.tableOid(0)
5353
.index(0)
54-
.typeOid(20)
54+
.typeOid(1043)
5555
.length(8)
5656
.modifier(-1)
5757
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/show.zviews/server.rpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ write advise zilla:flush ${pgsql:flushEx()
4444
.name("name")
4545
.tableOid(0)
4646
.index(0)
47-
.typeOid(701)
47+
.typeOid(1043)
4848
.length(8)
4949
.modifier(-1)
5050
.format("TEXT")
@@ -53,7 +53,7 @@ write advise zilla:flush ${pgsql:flushEx()
5353
.name("sql")
5454
.tableOid(0)
5555
.index(0)
56-
.typeOid(20)
56+
.typeOid(1043)
5757
.length(8)
5858
.modifier(-1)
5959
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/pgsql/show.tables.with.newline/client.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ read advised zilla:flush ${pgsql:flushEx()
4444
.name("Name")
4545
.tableOid(0)
4646
.index(0)
47-
.typeOid(701)
47+
.typeOid(1043)
4848
.length(8)
4949
.modifier(-1)
5050
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/pgsql/show.tables.with.newline/server.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ write advise zilla:flush ${pgsql:flushEx()
4646
.name("Name")
4747
.tableOid(0)
4848
.index(0)
49-
.typeOid(701)
49+
.typeOid(1043)
5050
.length(8)
5151
.modifier(-1)
5252
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/pgsql/show.ztables/client.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ read advised zilla:flush ${pgsql:flushEx()
4343
.name("Name")
4444
.tableOid(0)
4545
.index(0)
46-
.typeOid(701)
46+
.typeOid(1043)
4747
.length(4)
4848
.modifier(-1)
4949
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/pgsql/show.ztables/server.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ write advise zilla:flush ${pgsql:flushEx()
4646
.name("Name")
4747
.tableOid(0)
4848
.index(0)
49-
.typeOid(701)
49+
.typeOid(1043)
5050
.length(4)
5151
.modifier(-1)
5252
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/pgsql/show.zviews/client.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ read advised zilla:flush ${pgsql:flushEx()
4343
.name("Name")
4444
.tableOid(0)
4545
.index(0)
46-
.typeOid(701)
46+
.typeOid(1043)
4747
.length(4)
4848
.modifier(-1)
4949
.format("TEXT")

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/pgsql/show.zviews/server.rpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ write advise zilla:flush ${pgsql:flushEx()
4646
.name("Name")
4747
.tableOid(0)
4848
.index(0)
49-
.typeOid(701)
49+
.typeOid(1043)
5050
.length(4)
5151
.modifier(-1)
5252
.format("TEXT")

incubator/binding-risingwave/src/main/java/io/aklivity/zilla/runtime/binding/risingwave/internal/stream/RisingwaveProxyFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public final class RisingwaveProxyFactory implements RisingwaveStreamFactory
9797
private static final String SEVERITY_WARNING = "WARNING\u0000";
9898
private static final String CODE_XX000 = "XX000\u0000";
9999

100+
private static final int VARCHAR_TYPE_OID = 1043;
101+
100102
private static final String POSTGRES_USER = "postgres\u0000";
101103
private static final String DEFAULT_USER = "default\u0000";
102104

@@ -828,7 +830,7 @@ public void doDescription(
828830
.name("%s\u0000".formatted(name))
829831
.tableOid(0)
830832
.index((short) 0)
831-
.typeOid(701)
833+
.typeOid(VARCHAR_TYPE_OID)
832834
.length((short) name.length())
833835
.modifier(-1)
834836
.format(f -> f.set(PgsqlFormat.TEXT))

0 commit comments

Comments
 (0)