From 78043c852ee9047e8a44231974fce343a7b1bd13 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Tue, 31 Jan 2017 00:04:32 +0100 Subject: [PATCH] Fixed wrong add operation with float types #445 --- pydal/dialects/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pydal/dialects/base.py b/pydal/dialects/base.py index 6495145c8..fc3230bc9 100644 --- a/pydal/dialects/base.py +++ b/pydal/dialects/base.py @@ -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={}):