summaryrefslogtreecommitdiff
path: root/django/db/backends/util.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee2010-05-041-5/+1
| | | | | | workarounds. Thanks to timo and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5079 -- Avoid converting Decimals to floats during save to the database.Karen Tracey2008-11-121-1/+6
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@9394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7919 -- md5 and sha modules are deprecated since Python 2.5, use ↵Gary Wilson Jr2008-08-021-2/+3
| | | | | | hashlib module when available. Patch from Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7560 -- Moved a lot of the value conversion preparation forMalcolm Tredinnick2008-07-291-0/+7
| | | | | | | | | | | loading/saving interactions with the databases into django.db.backend. This helps external db backend writers and removes a bunch of database-specific if-tests in django.db.models.fields. Great work from Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5883 -- Added __iter__ methods to the debug cursor and the postgresql ↵Malcolm Tredinnick2008-03-171-0/+3
| | | | | | backend cursor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added a BaseDatabaseOperations.last_executed_query() hook, which allows a ↵Adrian Holovaty2007-10-231-14/+4
| | | | | | database backend to specify how to get the last-executed query on a given cursor. Implemented it for the psycopg2 backend. This means that for psycopg2, the SQL statements in django.db.connection.queries will now reflect the exact SQL as sent to the server, instead of a naive and misleading string-interpolated version git-svn-id: http://code.djangoproject.com/svn/django/trunk@6601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed _dict_helper() DB backend helper function, as it wasn't being used ↵Adrian Holovaty2007-08-201-8/+0
| | | | | | anymore git-svn-id: http://code.djangoproject.com/svn/django/trunk@5971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed backend.dictfetchall(), as it wasn't being used anywhereAdrian Holovaty2007-08-201-6/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@5970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed backend.dictfetchmany(), as it wasn't being used anywhereAdrian Holovaty2007-08-201-6/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@5969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed backend.dictfetchone(), as it wasn't being used anywhereAdrian Holovaty2007-08-201-7/+0
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@5968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick2007-07-041-6/+13
| | | | | | | | | backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged boulder-oracle-sprint branch (r3965:5512) back into trunk. AllMalcolm Tredinnick2007-06-231-0/+11
| | | | | | | expected tests pass for all databases. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4518 -- Added handling of empty strings in typecast_decimal() forMalcolm Tredinnick2007-06-101-1/+1
| | | | | | | SQLite's benefit. Thanks, Richard House. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2365, #3324 -- Renamed FloatField to DecimalField and changed the codeMalcolm Tredinnick2007-05-211-0/+15
| | | | | | | | | | | | | | | | | | to return Decimal instances in Python for this field. Backwards incompatible change. Added a real FloatField (stores floats in the database) and support for FloatField and DecimalField in newforms (analogous to IntegerField). Included decimal.py module (as django.utils._decimal) from Python 2.4. This is license compatible with Django and included for Python 2.3 compatibility only. Large portions of this work are based on patches from Andy Durdin and Jorge Gajon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4040 -- Changed uses of has_key() to "in". Slight performanceMalcolm Tredinnick2007-04-261-1/+1
| | | | | | | | improvement and forward-compatible with future Python releases. Patch from Gary Wilson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2913: CursorDebugWrapper no longer double-tuple-izes parameters. ↵Jacob Kaplan-Moss2006-11-071-1/+1
| | | | | | Thanks, artdent@freeshell.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@4045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2662 -- Changed dictfetchmany and dictfetchall to return iterators,Malcolm Tredinnick2006-09-221-2/+4
| | | | | | | rather than a list, in order to save memory. Patch from Simon Willison. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3783 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2632 -- Made django.db.backends.util._dict_helper more efficient. ↵Adrian Holovaty2006-08-311-1/+1
| | | | | | Thanks for the patch, Andy Dustman git-svn-id: http://code.djangoproject.com/svn/django/trunk@3684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty2006-06-081-1/+1
| | | | | | Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #411 -- CursorDebugWrapper now supports pyformat paramstyleAdrian Holovaty2006-06-011-0/+4
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@3038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-021-0/+114
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37