Skip to content

Commit

Permalink
Fixed wrong add operation with float types #445
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Jan 30, 2017
1 parent b04b33e commit 78043c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pydal/dialects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def gte(self, first, second=None, query_env={}):
self.expand(second, first.type, query_env=query_env))

def _is_numerical(self, field_type):
return field_type in ('integer', 'boolean', 'double', 'bigint') or \
return field_type in \
('integer', 'float', 'double', 'bigint', 'boolean') or \
field_type.startswith('decimal')

def add(self, first, second, query_env={}):
Expand Down

0 comments on commit 78043c8

Please sign in to comment.