-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7107 from dolthub/aaron/sqle-database-provider-cl…
…one-dbLocations-fix go/libraries/doltcore/sqle: DatabaseProvider: Fix a bug where a database created with call dolt_clone() would not be dropped until the server was restarted.
- Loading branch information
Showing
3 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bats | ||
load $BATS_TEST_DIRNAME/helper/common.bash | ||
|
||
setup() { | ||
setup_no_dolt_init | ||
} | ||
|
||
teardown() { | ||
stop_sql_server | ||
assert_feature_version | ||
teardown_common | ||
} | ||
|
||
@test "clone-drop: clone a database and then drop it" { | ||
mkdir repo | ||
cd repo | ||
dolt init | ||
dolt remote add pushed 'file://../pushed' | ||
dolt push pushed main:main | ||
dolt sql -q 'call dolt_clone("file://../pushed", "cloned"); drop database cloned;' | ||
} | ||
|
||
@test "clone-drop: sql-server: clone a database and then drop it" { | ||
mkdir repo | ||
cd repo | ||
dolt init | ||
dolt remote add pushed 'file://../pushed' | ||
dolt push pushed main:main | ||
start_sql_server | ||
dolt sql -q 'call dolt_clone("file://../pushed", "cloned"); drop database cloned;' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters