mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-03 11:30:28 -05:00
added skipped bats for SELECT INTO AUTO_INCREMENT bug
This commit is contained in:
@@ -319,4 +319,21 @@ SQL
|
||||
[[ "${lines[4]}" =~ "4,4" ]] || false
|
||||
[[ "${lines[5]}" =~ "5,5" ]] || false
|
||||
[[ "${lines[6]}" =~ "6,6" ]] || false
|
||||
}
|
||||
|
||||
@test "auto_increment: INSERT INTO SELECT ..." {
|
||||
dolt sql <<SQL
|
||||
CREATE TABLE other (pk int PRIMARY KEY);
|
||||
INSERT INTO other VALUES (1),(2),(3);
|
||||
SQL
|
||||
|
||||
skip "*expression.AutoIncrement is unsupported for inserts"
|
||||
dolt sql -q "INSERT INTO test (c0) SELECT pk FROM other;"
|
||||
|
||||
run dolt sql -q "SELECT * FROM test;" -r csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "${lines[0]}" =~ "pk,c0" ]] || false
|
||||
[[ "${lines[1]}" =~ "1,1" ]] || false
|
||||
[[ "${lines[2]}" =~ "2,2" ]] || false
|
||||
[[ "${lines[3]}" =~ "3,3" ]] || false
|
||||
}
|
||||
Reference in New Issue
Block a user