From b951fcfb261f512b3fcc8eb43a3f8da3ee2ec7ae Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 29 Aug 2007 13:23:36 +0000
Subject: [PATCH] make amount values working with %

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15911 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/SQLCatalog.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py
index 7268ee450e..fcf62623bb 100644
--- a/product/ZSQLCatalog/SQLCatalog.py
+++ b/product/ZSQLCatalog/SQLCatalog.py
@@ -208,6 +208,7 @@ class QueryMixin:
       if type == 'float':
         # Make sure there is no space in float values
         value = value.replace(' ','')
+        value = "'%s'" % value
     else:
       if hasattr(value, 'ISO'):
         value = "'%s'" % value.ISO()
-- 
2.30.9