Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4518 -- Added handling of empty strings in typecast_decimal() for

SQLite's benefit. Thanks, Richard House.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6fc10f50b0c9b877fffcad4893056cb91fa66b4f 1 parent 4a1dfe4
Malcolm Tredinnick authored June 10, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/util.py
2  django/db/backends/util.py
@@ -91,7 +91,7 @@ def typecast_boolean(s):
91 91
     return str(s)[0].lower() == 't'
92 92
 
93 93
 def typecast_decimal(s):
94  
-    if s is None:
  94
+    if s is None or s == '':
95 95
         return None
96 96
     return decimal.Decimal(s)
97 97
 

0 notes on commit 6fc10f5

Please sign in to comment.
Something went wrong with that request. Please try again.