Skip to content

Commit

Permalink
to #297 adopt CR
Browse files Browse the repository at this point in the history
  • Loading branch information
TianyuZhang1214 committed Dec 25, 2024
1 parent a938146 commit afc9c25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion catalog/initial_data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package catalog

var InitialDatas = struct {
var InitialDataTables = struct {
PGNamespace [][]any
PGRange [][]any
}{
Expand Down
4 changes: 2 additions & 2 deletions catalog/internal_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ var InternalTables = struct {
KeyColumns: []string{"rngtypid"},
ValueColumns: []string{"rngsubtype", "rngmultitypid", "rngcollation", "rngsubopc", "rngcanonical", "rngsubdiff"},
DDL: "rngtypid BIGINT PRIMARY KEY, rngsubtype BIGINT, rngmultitypid BIGINT, rngcollation BIGINT, rngsubopc BIGINT, rngcanonical VARCHAR, rngsubdiff VARCHAR",
InitialData: InitialDatas.PGRange,
InitialData: InitialDataTables.PGRange,
},
// postgres=# \d+ pg_type
// Table "pg_catalog.pg_type"
Expand Down Expand Up @@ -610,7 +610,7 @@ var InternalTables = struct {
"nspname VARCHAR NOT NULL," +
"nspowner BIGINT NOT NULL," +
"nspacl TEXT",
InitialData: InitialDatas.PGNamespace,
InitialData: InitialDataTables.PGNamespace,
},
}

Expand Down
2 changes: 0 additions & 2 deletions compatibility/pg/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ start_process() {
start_process $BATS_TEST_DIRNAME/c/pg_test 127.0.0.1 5432 postgres "" $BATS_TEST_DIRNAME/test.data
}

# Failed because of the following error:
# > Catalog Error: Table with name pg_range does not exist!
@test "pg-csharp" {
set_custom_teardown "sudo pkill -f dotnet"
start_process dotnet build $BATS_TEST_DIRNAME/csharp/PGTest.csproj -o $BATS_TEST_DIRNAME/csharp/bin
Expand Down

0 comments on commit afc9c25

Please sign in to comment.