mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 08:50:04 -06:00
add gms ver and mv tests
This commit is contained in:
@@ -61,7 +61,7 @@ require (
|
||||
github.com/dolthub/dolt-mcp v0.2.1-0.20250827202412-9d0f6e658fba
|
||||
github.com/dolthub/eventsapi_schema v0.0.0-20250725194025-a087efa1ee55
|
||||
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
|
||||
github.com/dolthub/go-mysql-server v0.20.1-0.20250909231122-5fb8788af3dd
|
||||
github.com/dolthub/go-mysql-server v0.20.1-0.20250910204816-4fa662877fc6
|
||||
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63
|
||||
github.com/edsrzf/mmap-go v1.2.0
|
||||
github.com/esote/minmaxheap v1.0.0
|
||||
|
||||
@@ -215,6 +215,8 @@ github.com/dolthub/go-icu-regex v0.0.0-20250820171420-f2b78f56ce9f h1:oSA8CptGeC
|
||||
github.com/dolthub/go-icu-regex v0.0.0-20250820171420-f2b78f56ce9f/go.mod h1:kpsRG+a196Y69zsAFL0RkQICII9a571lcaxhvQnmrdY=
|
||||
github.com/dolthub/go-mysql-server v0.20.1-0.20250909231122-5fb8788af3dd h1:FdOA59vPc2ilQAnQlXNfFSeVkCTHPa4m8Gl2KmOErTs=
|
||||
github.com/dolthub/go-mysql-server v0.20.1-0.20250909231122-5fb8788af3dd/go.mod h1:ymoHIRZoZKO1EH9iUGcq4E6XyIpUaMgZz3ZPeWa828w=
|
||||
github.com/dolthub/go-mysql-server v0.20.1-0.20250910204816-4fa662877fc6 h1:nZKH5tCM4nQRMJpLWUbbYwYL6Uyhhhj1AMG3pN3DTOQ=
|
||||
github.com/dolthub/go-mysql-server v0.20.1-0.20250910204816-4fa662877fc6/go.mod h1:ymoHIRZoZKO1EH9iUGcq4E6XyIpUaMgZz3ZPeWa828w=
|
||||
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI=
|
||||
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q=
|
||||
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE=
|
||||
|
||||
@@ -180,26 +180,3 @@ SQL
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "$EXPECTED" ]] || false
|
||||
}
|
||||
|
||||
# https://github.com/dolthub/dolt/issues/9817
|
||||
@test "sql-batch: bitwise operations with negative numbers" {
|
||||
run dolt sql -q "SELECT (-1) & (-1)" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551615" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT (-2) & (-2)" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551614" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT (-1) & (-2)" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551614" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT (-1) | 0" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551615" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT -1 ^ 0" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551615" ]] || false
|
||||
}
|
||||
|
||||
@@ -1610,3 +1610,26 @@ SQL
|
||||
run dolt sql -q "select * from information_schema.COLUMNS where table_name = 'test' and column_name = 'v';" -r csv
|
||||
[[ "$output" =~ 'test,v,2,,YES,year,,,,,,,,year,"","","insert,references,select,update","","",' ]] || false
|
||||
}
|
||||
|
||||
# https://github.com/dolthub/dolt/issues/9817
|
||||
@test "types: bitwise operations return uint64 with signed numbers" {
|
||||
run dolt sql -q "SELECT (-1) & (-1)" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551615" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT (-2) & (-2)" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551614" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT (-1) & (-2)" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551614" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT (-1) | 0" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551615" ]] || false
|
||||
|
||||
run dolt sql -q "SELECT -1 ^ 0" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "18446744073709551615" ]] || false
|
||||
}
|
||||
Reference in New Issue
Block a user