mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 00:39:44 -06:00
[auto-bump] [no-release-notes] dependency by jennifersp (#5020)
This commit is contained in:
@@ -58,7 +58,7 @@ require (
|
||||
github.com/cenkalti/backoff/v4 v4.1.3
|
||||
github.com/cespare/xxhash v1.1.0
|
||||
github.com/creasty/defaults v1.6.0
|
||||
github.com/dolthub/go-mysql-server v0.14.1-0.20221216214605-3c279a98b421
|
||||
github.com/dolthub/go-mysql-server v0.14.1-0.20221219174548-47116e7701cc
|
||||
github.com/google/flatbuffers v2.0.6+incompatible
|
||||
github.com/kch42/buzhash v0.0.0-20160816060738-9bdec3dec7c6
|
||||
github.com/mitchellh/go-ps v1.0.0
|
||||
|
||||
@@ -161,8 +161,8 @@ github.com/dolthub/flatbuffers v1.13.0-dh.1 h1:OWJdaPep22N52O/0xsUevxJ6Qfw1M2txC
|
||||
github.com/dolthub/flatbuffers v1.13.0-dh.1/go.mod h1:CorYGaDmXjHz1Z7i50PYXG1Ricn31GcA2wNOTFIQAKE=
|
||||
github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
|
||||
github.com/dolthub/fslock v0.0.3/go.mod h1:QWql+P17oAAMLnL4HGB5tiovtDuAjdDTPbuqx7bYfa0=
|
||||
github.com/dolthub/go-mysql-server v0.14.1-0.20221216214605-3c279a98b421 h1:/zwk2QjWGE1mxO2S+fH52puSfhab0dTP2SG8lB9N7hM=
|
||||
github.com/dolthub/go-mysql-server v0.14.1-0.20221216214605-3c279a98b421/go.mod h1:t/oSRkxu+4cg7KAJ4mK6q62hdzkyeTmRqKrsSq2DZTU=
|
||||
github.com/dolthub/go-mysql-server v0.14.1-0.20221219174548-47116e7701cc h1:889/n0VyMQW2vZS4yLq8skR4hvrgXFHsb0TaRhOEZHo=
|
||||
github.com/dolthub/go-mysql-server v0.14.1-0.20221219174548-47116e7701cc/go.mod h1:t/oSRkxu+4cg7KAJ4mK6q62hdzkyeTmRqKrsSq2DZTU=
|
||||
github.com/dolthub/ishell v0.0.0-20221214210346-d7db0b066488 h1:0HHu0GWJH0N6a6keStrHhUAK5/o9LVfkh44pvsV4514=
|
||||
github.com/dolthub/ishell v0.0.0-20221214210346-d7db0b066488/go.mod h1:ehexgi1mPxRTk0Mok/pADALuHbvATulTh6gzr7NzZto=
|
||||
github.com/dolthub/jsonpath v0.0.0-20210609232853-d49537a30474 h1:xTrR+l5l+1Lfq0NvhiEsctylXinUMFhhsqaEcl414p8=
|
||||
|
||||
@@ -537,8 +537,8 @@ DELIM
|
||||
dolt sql -q "CREATE TABLE test(pk BIGINT PRIMARY KEY, v1 SMALLINT DEFAULT (GREATEST(pk, 2)))"
|
||||
run dolt sql -q "SELECT column_name, is_nullable, column_default FROM information_schema.columns WHERE table_name = 'test'"
|
||||
[ "$status" -eq "0" ]
|
||||
[[ "$output" =~ "| pk | NO | NULL |" ]] || false
|
||||
[[ "$output" =~ "| v1 | YES | GREATEST(pk, 2) |" ]] || false
|
||||
[[ "$output" =~ "| pk | NO | NULL |" ]] || false
|
||||
[[ "$output" =~ "| v1 | YES | greatest(pk,2) |" ]] || false
|
||||
}
|
||||
|
||||
@test "default-values: Additional test with function defaults" {
|
||||
@@ -550,9 +550,9 @@ DELIM
|
||||
run dolt sql -q "SELECT column_name, column_default FROM information_schema.columns WHERE table_name = 'test_table'"
|
||||
[ "$status" -eq "0" ]
|
||||
[[ "$output" =~ "| pk | NULL |" ]] || false
|
||||
[[ "$output" =~ "| col2 | LENGTH('hello') |" ]] || false
|
||||
[[ "$output" =~ "| col3 | ROUND(-1.58, 0) |" ]] || false
|
||||
[[ "$output" =~ "| col4 | RAND() |" ]] || false
|
||||
[[ "$output" =~ "| col2 | length('hello') |" ]] || false
|
||||
[[ "$output" =~ "| col3 | round(-1.58,0) |" ]] || false
|
||||
[[ "$output" =~ "| col4 | rand() |" ]] || false
|
||||
}
|
||||
|
||||
@test "default-values: Outputting the string version of a more complex default value works" {
|
||||
@@ -564,6 +564,6 @@ DELIM
|
||||
[ "$status" -eq "0" ]
|
||||
[[ "$output" =~ "COLUMN_NAME,COLUMN_DEFAULT" ]] || false
|
||||
[[ "$output" =~ "pk," ]] || false
|
||||
[[ "$output" =~ "col2,(RAND() + RAND())" ]] || false
|
||||
[[ "$output" =~ "col2,(rand() + rand())" ]] || false
|
||||
[[ "$output" =~ "col3,CASE pk WHEN 1 THEN false ELSE true END" ]] || false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user