summaryrefslogtreecommitdiff
path: root/django/db/backends
AgeCommit message (Collapse)Author
2010-05-28Fixed #13656 -- Ensure that the management commands use the right database ↵Russell Keith-Magee
for transaction start/end commands. Thanks to Alex Gaynor for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee
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
2010-04-29Fixed #13441 -- Enforced a maximum identifier length of 63 for PostgreSQL. ↵Russell Keith-Magee
Thanks to aball for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-28Fixed a bug preventing cursor variables from being passed as bind parameters ↵Ian Kelly
in the oracle backend. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-28Fixed #12977 -- Ensure that indexes don't exceed character limits on MySQL. ↵Russell Keith-Magee
Thanks to carljm for the original report, and hgeerts@osso.nl for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-21Fixed #13396 -- Modified the SQLite introspection code to avoid a problem ↵Russell Keith-Magee
with unconsumed cursors on PyPy. Thanks to Alex Gaynor for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-21Fixed #13328 -- Ensured that querysets on models with callable defaults can ↵Russell Keith-Magee
be pickled. No, really this time. Thanks to Alex for his help brainstorming the solution. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-09Fixed #13293 -- Corrected a problem with the MySQL handling of boolean ↵Russell Keith-Magee
return values when a query has an extra() clause. Thanks to mk for the report and draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-04Fixed #12328 -- Corrected the handling of subqueries with ordering and ↵Russell Keith-Magee
slicing, especially when used in delete subqueries. Thanks to Walter Doekes for the report. This fixes a feature that isn't available under MySQL and Oracle (Refs #10099). git-svn-id: http://code.djangoproject.com/svn/django/trunk@12912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-01Fixed #7190 -- Corrected a problem with Boolean value handling on the MySQL ↵Russell Keith-Magee
backend. Thanks to George Vilches for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-25Fixed #12766 -- Only set the psycopg1 client encoding when the connection is ↵Russell Keith-Magee
first created. This allows the custom_pk test to pass under psycopg1. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-25Fixed #12759 -- Fixed the iterator method on psycopg1 cursors, which was ↵Russell Keith-Magee
preventing the raw_query tests from passing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-23Fixed #12612 -- Corrected handling of parameter formatting in SQLite backend ↵Russell Keith-Magee
so that executemany raises exceptions when bad parameter counts are provided. Thanks to Niels <niels@pythonheads.nl> for the report, and Gabriel Hurley for the help narrowing down the problem. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-20Fixed #12850 -- Ensured that constraint names are quoted when they are ↵Russell Keith-Magee
removed. Thanks to Tim Kersten for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-10Fixed #12976 -- Fixed the sequence reset commands issued by sqlflush in a ↵Russell Keith-Magee
multidb setup. To achieve this, database introspection was modified to utilize routing information to determine if a model should be available. Thanks to pczapla for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-09Changed last_executed_query to avoid raising exceptions on non-utf8-encoded ↵Karen Tracey
parameter data. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-26Corrected an edge case introduced in r12602. Thanks to Ramiro Morales for ↵Russell Keith-Magee
the eagle eyes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-26Fixed #1480 -- Added the ability to use the system timezone. Thanks to ↵Russell Keith-Magee
Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-24Fixed #12818. SQLite now properly quotes strings for date extraction and ↵Joseph Kocherhans
truncation. Thanks, SmilyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23No, really this time -- corrected the warning message from r12510.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23Cleaned up the warning message introduced by r12510.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23Fixed #12912 -- Placed the psycopg1-backed ``postgresql`` database backend ↵Russell Keith-Magee
on the deprecation path. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-03Fixed a regression in the Postgres psycopg cursor handling introduced by ↵Russell Keith-Magee
r12352. Thanks to Kenneth Gonsalves for the report, and Karen for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-30Fixed #12732 -- Corrected an argument naming problem introduced by r12532. ↵Russell Keith-Magee
Thanks to stevedegrace for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-29Fixed #12702 -- Introduced a common implementation of DatabaseError and ↵Russell Keith-Magee
IntegrityError, so that database backends can (re)raise common error classes. Thanks for Waldemar Kornewald for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-25Fixed #11017: Changed implementation of Oracle LIKE lookups to enable index ↵Ian Kelly
usage. Thanks to Jani Tiainen for this workaround. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-19Fixed #12633 -- Modified some old m2m attribute use in deprecated m2m table ↵Russell Keith-Magee
creation methods. Also added PendingDeprecation warnings to those methods. Thanks to Alex for the suggestion, and Ramiro for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Changed a whole bunch of places to raise exception instances instead of ↵Adrian Holovaty
old-style raising exception classes plus a comma. Good for the future Python 3 conversion git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-24Fixed #12428: Ensured that the dummy backend is installed correctly on a ↵Russell Keith-Magee
fresh project generated by django-admin.py startproject. Thanks to Simon for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Changes to get raw queries working on the oracle backend.Ian Kelly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-19Fixed #12234 -- Create additional indexes that use the appropriate operation ↵Justin Bronn
class for PostgreSQL `varchar` and `text` columns when `db_index=True`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17Fixed #399: Added big integer field. Thanks to Tomáš Kopeček for ↵Karen Tracey
persistently maintaining a patch for this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-24Fixed #10566: Added support for cx_Oracle compiled with the WITH_UNICODE flag.Ian Kelly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-21Fixed #11049: introspection on Oracle now identifies IntegerFields correctly.Matt Boersma
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-27Fixed #11428 -- Ensured that SQL generating commands and dumpdata don't ↵Russell Keith-Magee
include proxy models in their output. Thanks to Anssi Kaariainen for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-21Fixed #11487: pass long strings to Oracle as CLOB rather than NCLOB to ↵Ian Kelly
prevent an encoding bug that occurs in some installations. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-11Fixed #11107 -- Corrected the generation of sequence reset SQL for m2m ↵Russell Keith-Magee
fields with an intermediate model. Thanks to J Clifford Dyer for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-14Fixed #11316 -- Fixed a Python 2.3 compatibilty issue with [10966] (in ↵Gary Wilson Jr
Python 2.3 on 32-bit machines, 1<<32 is 0). Thanks to kylef for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-09Fixed #9253 -- Modified the method used to generate constraint names so that ↵Russell Keith-Magee
it is consistent regardless of machine word size. NOTE: This change is backwards incompatible for some users. If you are using a 32-bit platform, you will observe no differences as a result of this change. However, users on 64-bit platforms may experience some problems using the `reset` management command. Prior to this change, 64-bit platforms would generate a 64-bit, 16 character digest in the constraint name; for example: ALTER TABLE `myapp_sometable` ADD CONSTRAINT `object_id_refs_id_5e8f10c132091d1e` FOREIGN KEY ... Following this change, all platforms, regardless of word size, will generate a 32-bit, 8 character digest in the constraint name; for example: ALTER TABLE `myapp_sometable` ADD CONSTRAINT `object_id_refs_id_32091d1e` FOREIGN KEY ... As a result of this change, you will not be able to use the `reset` management command on any table created with 64-bit constraints. This is because the the new generated name will not match the historically generated name; as a result, the SQL constructed by the `reset` command will be invalid. If you need to reset an application that was created with 64-bit constraints, you will need to manually drop the old constraint prior to invoking `reset`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-12Fixed #11033 -- handle cx_Oracle.UNICODE when driver was compiled without ↵Matt Boersma
Unicode support. Thanks, JirkaV. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-11Fixed #11050 -- Oracle now passes all but one introspection unit test.Matt Boersma
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-11Fixed #11051 -- Oracle passes null_fk unit tests in trunk again. Thanks, ↵Matt Boersma
JirkaV. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-11More fixes to PostgreSQL version comparisons from r10730.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-11Corrected PostgreSQL version comparisons from r10730. Thanks to rozwell for ↵Russell Keith-Magee
the report on IRC. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-10Fixed #10906 -- Added a check for PostgreSQL pre 8.2 when using ↵Russell Keith-Magee
StdDev/Variance aggregates. Thanks to Richard Davies for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-10Fixed #10842 -- Corrected parsing of version numbers for PostgreSQL 8.4beta ↵Russell Keith-Magee
series. Thanks to hgdeoro for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-10Fixed #10958 -- Corrected the setting of PostgreSQL isolation level. Thanks ↵Russell Keith-Magee
to kmishler for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-21Fixed #10716 so Oracle tests run again. Thanks very much, kmtracey.Matt Boersma
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13Fixed #9804 -- Corrected the introspection of sequence names. This was ↵Russell Keith-Magee
causing problems when flushing tables that had many-to-many relations through an inherited table. Thanks to jdimov for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10552 bcc190cf-cafb-0310-a4f2-bffc1f526a37