diff --git a/integration-tests/bats/sql-branch.bats b/integration-tests/bats/sql-branch.bats index b81af40185..7a36c67103 100644 --- a/integration-tests/bats/sql-branch.bats +++ b/integration-tests/bats/sql-branch.bats @@ -192,3 +192,13 @@ SQL [ "$status" -eq 0 ] [[ ! "$output" =~ "origin/b1" ]] || false } + +@test "sql-branch: CALL DOLT_BRANCH -m on session active branch (dolt sql)" { + dolt branch other + echo "call dolt_checkout('other'); call dolt_branch('-m', 'other', 'newOther')" | dolt sql + run dolt branch + [ $status -eq 0 ] + [[ "$output" =~ "newOther" ]] || false + [[ "$output" =~ "main" ]] || false + [[ ! "$output" =~ "other" ]] || false +} \ No newline at end of file diff --git a/integration-tests/bats/sql-server.bats b/integration-tests/bats/sql-server.bats index a5612443cc..c2c4eebf0a 100644 --- a/integration-tests/bats/sql-server.bats +++ b/integration-tests/bats/sql-server.bats @@ -1924,3 +1924,15 @@ behavior: [ $status -eq 0 ] [[ "$output" =~ "0x1C4C4E338AD7442184509D5182816AC3" ]] || false } + +@test "sql-server: CALL DOLT_BRANCH -m on session active branch (dolt sql-server)" { + cd repo1 + dolt branch other + start_sql_server + dolt sql-client -P $PORT -u dolt --use-db repo1 -q "call dolt_checkout('other'); call dolt_branch('-m', 'other', 'newOther')" + run dolt branch + [ $status -eq 0 ] + [[ "$output" =~ "newOther" ]] || false + [[ "$output" =~ "main" ]] || false + [[ ! "$output" =~ "other" ]] || false +} \ No newline at end of file