Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update show commands type oid #1357

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(8)
.modifier(-1)
.format("TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ write advise zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.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 @@ -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 @@ -44,7 +44,7 @@ read advised zilla:flush ${pgsql:flushEx()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.typeOid(1043)
.length(8)
.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(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 VARCHAR_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(VARCHAR_TYPE_OID)
.length((short) name.length())
.modifier(-1)
.format(f -> f.set(PgsqlFormat.TEXT))
Expand Down
Loading