-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move new attach tests to right folder
- Loading branch information
Showing
2 changed files
with
31 additions
and
24 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 @@ | ||
require sqlite_scanner | ||
|
||
# load from a database with a numeric column that has mixed types | ||
|
||
# using the all_varchar option, without the setting | ||
statement ok | ||
ATTACH 'data/mixed_data_numeric.db' as mydb (TYPE sqlite, all_varchar TRUE); | ||
|
||
query I | ||
select * from mydb.tbl; | ||
---- | ||
42 | ||
hello | ||
NULL | ||
|
||
statement ok | ||
DETACH mydb; | ||
|
||
statement ok | ||
SET sqlite_all_varchar=true | ||
|
||
# using the setting, not the all_varchar option | ||
statement ok | ||
ATTACH 'data/mixed_data_numeric.db' as mydb (TYPE sqlite); | ||
|
||
query I | ||
select * from mydb.tbl; | ||
---- | ||
42 | ||
hello | ||
NULL |