Skip to content

Commit c7abba6

Browse files
authored
Merge pull request #107 from ambitioninc/master
merge back to develop
2 parents 263b2aa + 81bb470 commit c7abba6

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CONTRIBUTORS

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Micah Hausler ([email protected])
33
Andrew Plummer (https://github.com/plumdog)
44
Jure Žvelc (https://github.com/jzvelc)
55
Timothy J Laurent (https://github.com/timothyjlaurent)
6+
NickHilton (https://github.com/NickHilton)

docs/release_notes.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release Notes
22
=============
33

4+
v2.0.1
5+
------
6+
* BUG: 'bigserial' dtype should not be a cast type - NickHilton
7+
48
v2.0.0
59
------
610
* Add support Django 3.0, 3.1

querybuilder/query.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from querybuilder.helpers import set_value_for_keypath
1414
from querybuilder.tables import TableFactory, ModelTable, QueryTable
1515

16+
SERIAL_DTYPES = ['serial', 'bigserial']
17+
1618

1719
class Join(object):
1820
"""
@@ -1170,7 +1172,7 @@ def get_update_sql(self, rows):
11701172
db_type = field_object.db_type(self.connection)
11711173

11721174
# Don't cast the pk
1173-
if db_type == 'serial':
1175+
if db_type in SERIAL_DTYPES:
11741176
placeholders.append('%s')
11751177
else:
11761178
# Cast the placeholder to the data type

querybuilder/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.0'
1+
__version__ = '2.0.1'

0 commit comments

Comments
 (0)