diff --git a/catalog/initial_data.go b/catalog/initial_data.go index 555e736..f22d1a0 100644 --- a/catalog/initial_data.go +++ b/catalog/initial_data.go @@ -1,6 +1,6 @@ package catalog -var InitialDatas = struct { +var InitialDataTables = struct { PGNamespace [][]any PGRange [][]any }{ diff --git a/catalog/internal_tables.go b/catalog/internal_tables.go index 6344bfc..c8f9451 100644 --- a/catalog/internal_tables.go +++ b/catalog/internal_tables.go @@ -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" @@ -610,7 +610,7 @@ var InternalTables = struct { "nspname VARCHAR NOT NULL," + "nspowner BIGINT NOT NULL," + "nspacl TEXT", - InitialData: InitialDatas.PGNamespace, + InitialData: InitialDataTables.PGNamespace, }, } diff --git a/compatibility/pg/test.bats b/compatibility/pg/test.bats index d95c025..b882ce9 100644 --- a/compatibility/pg/test.bats +++ b/compatibility/pg/test.bats @@ -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