Skip to content

Commit

Permalink
0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kim committed Sep 23, 2016
1 parent 7531a5b commit 3faf4a7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![PyPI version](https://badge.fury.io/py/vertica-python.png)](http://badge.fury.io/py/vertica-python)

0.6.x adds python3 support (namedparams support is currently broken in python3, see issue 112)
0.6.x adds python3 support (unicode namedparams support is currently broken in python3, see issue 112)

0.5.x changes the connection method to accept kwargs instead of a dict to be more dbapi compliant.
copy methods improved and consolidated in 0.5.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# version should use the format 'x.x.x' (instead of 'vx.x.x')
setup(
name='vertica-python',
version='0.6.6',
version='0.6.7',
description='A native Python client for the Vertica database.',
author='Justin Berka, Alex Kim',
author_email='[email protected], [email protected]',
Expand Down
2 changes: 1 addition & 1 deletion vertica_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Main module for this library.

# The version number of this library.
version_info = (0, 6, 6)
version_info = (0, 6, 7)

__version__ = '.'.join(map(str, version_info))

Expand Down
24 changes: 24 additions & 0 deletions vertica_python/tests/unicode_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,27 @@ def test_unicode_named_parameter_binding(self):
res = cur.fetchone()

assert res[0] == value

def test_string_query(self):
value = u'test'
query = u"SELECT '{}'".format(value)

with connect(**conn_info) as conn:
cur = conn.cursor()
cur.execute(query)
res = cur.fetchone()

assert res[0] == value

# this test is broken on python3: see issue #112
def test_string_named_parameter_binding(self):
key = u'test'
value = u'value'
query = u"SELECT :{}".format(key)

with connect(**conn_info) as conn:
cur = conn.cursor()
cur.execute(query, {key: value})
res = cur.fetchone()

assert res[0] == value

0 comments on commit 3faf4a7

Please sign in to comment.