1
0
Fork 0

Add a test for the boolean printing.

This commit is contained in:
Amjith Ramanujam 2015-01-31 16:38:47 -08:00
parent 6e3da4c5b1
commit f956fa80ea
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,11 @@
Current
=======
Bug Fixes:
----------
* Treat boolean values as strings instead of ints.
0.14.0
======

View File

@ -17,6 +17,18 @@ def test_conn(executor):
+-----+
SELECT 1""")
@dbtest
def test_bools_are_treated_as_strings(executor):
run(executor, '''create table test(a boolean)''')
run(executor, '''insert into test values(True)''')
assert run(executor, '''select * from test''', join=True) == dedent("""\
+------+
| a |
|------|
| True |
+------+
SELECT 1""")
@dbtest
def test_schemata_table_and_columns_query(executor):
run(executor, "create table a(x text, y text)")