From 28b0664e60dc841976afee4a56f0932b9543042d Mon Sep 17 00:00:00 2001 From: James Cor Date: Fri, 19 May 2023 11:13:10 -0700 Subject: [PATCH] fix bats tests --- integration-tests/bats/sql-spatial-types.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-tests/bats/sql-spatial-types.bats b/integration-tests/bats/sql-spatial-types.bats index 5db6aa02ac..2268698ca3 100644 --- a/integration-tests/bats/sql-spatial-types.bats +++ b/integration-tests/bats/sql-spatial-types.bats @@ -164,13 +164,13 @@ teardown() { @test "sql-spatial-types: SRID defined in column definition in CREATE TABLE" { run dolt sql -q "CREATE TABLE pt (i int primary key, p POINT NOT NULL SRID 1)" [ "$status" -eq 1 ] - [[ "$output" =~ "unsupported feature: unsupported SRID value" ]] || false + [[ "$output" =~ "There's no spatial reference with SRID 1" ]] || false run dolt sql -q "CREATE TABLE pt (i int primary key, p POINT NOT NULL SRID 0)" [ "$status" -eq 0 ] run dolt sql -q "SHOW CREATE TABLE pt" - [[ "$output" =~ "\`p\` point NOT NULL SRID 0" ]] || false + [[ "$output" =~ "\`p\` point NOT NULL /*!80003 SRID 0 */" ]] || false dolt sql -q "INSERT INTO pt VALUES (1, POINT(5,6))" run dolt sql -q "SELECT ST_ASWKT(p) FROM pt" @@ -203,7 +203,7 @@ SQL [ "$status" -eq 0 ] run dolt sql -q "SHOW CREATE TABLE table1" - [[ "$output" =~ "\`p\` geometry NOT NULL SRID 4326" ]] || false + [[ "$output" =~ "\`p\` geometry NOT NULL /*!80003 SRID 4326 */" ]] || false run dolt sql -q "SELECT ST_ASWKT(p) FROM table1" [[ "$output" =~ "LINESTRING(0 0,1 2)" ]] || false