Skip to content

Commit

Permalink
Update show commands type oid
Browse files Browse the repository at this point in the history
  • Loading branch information
akrambek committed Dec 20, 2024
1 parent 3d9e10e commit b2b58fa
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand All @@ -51,7 +51,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("sql")
.tableOid(0)
.index(0)
.typeOid(20)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand All @@ -53,7 +53,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("sql")
.tableOid(0)
.index(0)
.typeOid(20)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand All @@ -51,7 +51,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("sql")
.tableOid(0)
.index(0)
.typeOid(20)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand All @@ -53,7 +53,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("sql")
.tableOid(0)
.index(0)
.typeOid(20)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(4)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(4)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(4)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(4)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public final class RisingwaveProxyFactory implements RisingwaveStreamFactory
private static final String SEVERITY_WARNING = "WARNING\u0000";
private static final String CODE_XX000 = "XX000\u0000";

private static final int STRING_TYPE_OID = 1043;

private static final String POSTGRES_USER = "postgres\u0000";
private static final String DEFAULT_USER = "default\u0000";

Expand Down Expand Up @@ -828,7 +830,7 @@ public void doDescription(
.name("%s\u0000".formatted(name))
.tableOid(0)
.index((short) 0)
.typeOid(701)
.typeOid(STRING_TYPE_OID)
.length((short) name.length())
.modifier(-1)
.format(f -> f.set(PgsqlFormat.TEXT))
Expand Down

0 comments on commit b2b58fa

Please sign in to comment.