mirror of https://github.com/dbcli/pgcli
Add a test for the boolean printing.
This commit is contained in:
parent
6e3da4c5b1
commit
f956fa80ea
|
@ -1,3 +1,11 @@
|
|||
Current
|
||||
=======
|
||||
|
||||
Bug Fixes:
|
||||
----------
|
||||
* Treat boolean values as strings instead of ints.
|
||||
|
||||
|
||||
0.14.0
|
||||
======
|
||||
|
||||
|
|
|
@ -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)")
|
||||
|
|
Loading…
Reference in New Issue