Explicitly not that string types are unsupported.

This commit is contained in:
Friedrich Lindenberg 2017-09-02 16:48:53 +02:00
parent a4c73a8fb8
commit 17ef44485d

View File

@ -175,6 +175,8 @@ class Database(object):
table5 = db.create_table('population5',
primary_id=False)
"""
assert not isinstance(primary_type, six.string_types), \
'Text-based primary_type support is dropped, use db.types.'
table_name = self._valid_table_name(table_name)
self._acquire()
try: