summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2008-08-04 17:25:51 +0200
committerPierre-Yves David <pierre-yves.david@logilab.fr>2008-08-04 17:25:51 +0200
commit590ae8cb3189ce5727bce7d78ab7b4e6c3ae3e6e (patch)
treedff607b4a6117f92fd50597eaa96ef81cdf4bda0
parent1ea16bb5f8ad86619a2fbf29ae05c78d943e68e6 (diff)
downloadlogilab-common-590ae8cb3189ce5727bce7d78ab7b4e6c3ae3e6e.tar.gz
correction in adapt_decimal
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index 06c565a..48ed39a 100644
--- a/db.py
+++ b/db.py
@@ -353,7 +353,7 @@ class _PySqlite2Adapter(DBAPIAdapter):
# decimal type handling
from decimal import Decimal
def adapt_decimal(data):
- return u"%s" % data
+ return str(data)
sqlite.register_adapter(Decimal,adapt_decimal)
def convert_decimal(data):