mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-25 03:05:52 -05:00
updated NULLs in compat bats
This commit is contained in:
@@ -112,12 +112,11 @@ teardown() {
|
||||
|
||||
run dolt sql -q 'select * from abc;'
|
||||
[ "$status" -eq 0 ]
|
||||
echo $output
|
||||
[[ "${lines[1]}" =~ "| pk | a | b | x | y |" ]] || false
|
||||
[[ "${lines[2]}" =~ "+----+------+-----+---+------+" ]] || false
|
||||
[[ "${lines[3]}" =~ "| 0 | asdf | 1.1 | 0 | NULL |" ]] || false
|
||||
[[ "${lines[4]}" =~ "| 2 | asdf | 1.1 | 0 | NULL |" ]] || false
|
||||
[[ "${lines[5]}" =~ "| 3 | data | 1.1 | 0 | NULL |" ]] || false
|
||||
[[ "${lines[1]}" =~ "| pk | a | b | x | y |" ]] || false
|
||||
[[ "${lines[2]}" =~ "+----+------+-----+---+-----+" ]] || false
|
||||
[[ "${lines[3]}" =~ "| 0 | asdf | 1.1 | 0 | 121 |" ]] || false
|
||||
[[ "${lines[4]}" =~ "| 2 | asdf | 1.1 | 0 | 121 |" ]] || false
|
||||
[[ "${lines[5]}" =~ "| 3 | data | 1.1 | 0 | 121 |" ]] || false
|
||||
}
|
||||
|
||||
@test "dolt schema show on branch other" {
|
||||
@@ -146,12 +145,11 @@ teardown() {
|
||||
dolt checkout other
|
||||
run dolt sql -q 'select * from abc;'
|
||||
[ "$status" -eq 0 ]
|
||||
echo $output
|
||||
[[ "${lines[1]}" =~ "| pk | a | b | w | z |" ]] || false
|
||||
[[ "${lines[2]}" =~ "+----+------+-----+---+------+" ]] || false
|
||||
[[ "${lines[3]}" =~ "| 0 | asdf | 1.1 | 0 | NULL |" ]] || false
|
||||
[[ "${lines[4]}" =~ "| 1 | asdf | 1.1 | 0 | NULL |" ]] || false
|
||||
[[ "${lines[5]}" =~ "| 4 | data | 1.1 | 0 | NULL |" ]] || false
|
||||
[[ "${lines[1]}" =~ "| pk | a | b | w | z |" ]] || false
|
||||
[[ "${lines[2]}" =~ "+----+------+-----+---+-----+" ]] || false
|
||||
[[ "${lines[3]}" =~ "| 0 | asdf | 1.1 | 0 | 122 |" ]] || false
|
||||
[[ "${lines[4]}" =~ "| 1 | asdf | 1.1 | 0 | 122 |" ]] || false
|
||||
[[ "${lines[5]}" =~ "| 4 | data | 1.1 | 0 | 122 |" ]] || false
|
||||
|
||||
dolt checkout master
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ DELETE FROM abc WHERE pk=1;
|
||||
INSERT INTO abc VALUES (3, 'data', 1.1, 0, 0);
|
||||
ALTER TABLE abc DROP COLUMN w;
|
||||
ALTER TABLE abc ADD COLUMN y BIGINT;
|
||||
UPDATE abc SET y = 121;
|
||||
SQL
|
||||
dolt add .
|
||||
dolt commit -m "made changes to master"
|
||||
@@ -44,6 +45,7 @@ DELETE FROM abc WHERE pk=2;
|
||||
INSERT INTO abc VALUES (4, 'data', 1.1, 0, 0);
|
||||
ALTER TABLE abc DROP COLUMN x;
|
||||
ALTER TABLE abc ADD COLUMN z BIGINT;
|
||||
UPDATE abc SET z = 122;
|
||||
SQL
|
||||
dolt add .
|
||||
dolt commit -m "made changes to other"
|
||||
|
||||
Reference in New Issue
Block a user