1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

2561 Commits

Author SHA1 Message Date
Boulder Sprinters
a3c5889d93 boulder-oracle-sprint: Fixed previous commit, which broke TimeField.get_db_pre_save for MySQL.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 16:52:40 +00:00
Boulder Sprinters
8ccc894e17 boulder-oracle-sprint: Removed obsolete stripping of microseconds from datetime objects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 16:48:36 +00:00
Boulder Sprinters
786782edc5 boulder-oracle-sprint: Merged to [5258]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 16:30:51 +00:00
Boulder Sprinters
41921a4e73 boulder-oracle-sprint: It makes more sense on multiple levels to just let Oracle store '' (empty string) as NULL like it wants to than to try to save the empty string by storing it as some other value. This breaks a few test cases in serializers_regress, but that IMO is a matter of fixing the test cases, not the backend.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 22:45:52 +00:00
Boulder Sprinters
f948bb371e Fixed reverse type mapping in Oracle introspection.py: cx_Oracle.STRING is a VARCHAR2/CharField, not TextField.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 17:09:48 +00:00
Boulder Sprinters
151426692e boulder-oracle-sprint: Merged to [5245]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 16:03:18 +00:00
Boulder Sprinters
c53378eb4b boulder-oracle-sprint: Merged to [5234]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 15:58:54 +00:00
Boulder Sprinters
bcc26d8eea boulder-oracle-sprint: Merged to [5193]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 16:03:48 +00:00
Boulder Sprinters
12702bc683 boulder-oracle-sprint: Merged to [5182]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 15:51:59 +00:00
Boulder Sprinters
e5ded41f31 boulder-oracle-sprint: Merged to [5177]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 15:28:16 +00:00
Boulder Sprinters
7f13278f86 boulder-oracle-sprint: Merged to [5173]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 17:46:05 +00:00
Boulder Sprinters
a275d3da8e boulder-oracle-sprint: Merged to [5156]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-07 15:50:55 +00:00
Boulder Sprinters
0f22c6a7c8 boulder-oracle-sprint: Fixes #4215: Applied quote_only_if_word.patch
from Ben Khoo. Thanks!


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-04 17:03:20 +00:00
Boulder Sprinters
32683de27c boulder-oracle-sprint: Merged to [5147]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03 19:26:47 +00:00
Boulder Sprinters
750d2e8c3c boulder-oracle-sprint: Fixed sqlclear trying to drop sequences for
tables without AutoFields.  Fixed output of sql, sqlall, sqlreset, and 
sqlflush for piping to SQL*Plus.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-02 16:30:00 +00:00
Boulder Sprinters
90740c93e6 boulder-oracle-sprint: Merged to [5134]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-01 15:33:10 +00:00
Boulder Sprinters
5a7802586d boulder-oracle-sprint: Merged to [5127]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-30 15:32:29 +00:00
Boulder Sprinters
3b479bfc56 boulder-oracle-sprint: Merged to [5113]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-27 20:21:28 +00:00
Boulder Sprinters
d0213969c2 boulder-oracle-sprint: Merged to [5099]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26 20:45:53 +00:00
Boulder Sprinters
61bef9bbfd boulder-oracle-sprint: Merged to [5078]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-25 18:20:25 +00:00
Boulder Sprinters
62ba18d750 boulder-oracle-sprint: Merged to [5061]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-23 16:16:27 +00:00
Boulder Sprinters
172d4ba33b boulder-oracle-sprint: Merged to [5045]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-20 17:42:30 +00:00
Boulder Sprinters
4230f0c936 boulder-oracle-sprint: Fixed #4093 and added tests that cover it and the tricky datetime
fields.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-20 17:31:42 +00:00
Boulder Sprinters
557a0d407c boulder-oracle-sprint: Renamed the "tablespace" options to "db_tablespace".
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 21:17:29 +00:00
Boulder Sprinters
1ad6a8f5c1 boulder-oracle-sprint: Removed Oracle-specific code from DateField.get_db_prep_save and DateTimeField.get_db_prep_save. Casting to a datetime object is no longer necessary here, because the cursor wrapper automatically sets ansi date and timestamp formats.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 21:03:56 +00:00
Boulder Sprinters
943189a45d boulder-oracle-sprint: Removed django_empty_set_in_where.patch from ticket #3053 in favor of the trunk's patch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 20:59:23 +00:00
Boulder Sprinters
7495b05b12 boulder-oracle-sprint: Small non-functional change to make the branch look more like more like the trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 19:58:54 +00:00
Boulder Sprinters
31b1e3aa04 boulder-oracle-sprint: Updated docs to mention Oracle and cx_Oracle where needed.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 18:56:51 +00:00
Boulder Sprinters
3f549ca61d boulder-oracle-sprint: Fixed application of django_empty_set_in_where.patch from ticket #3053.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 17:56:53 +00:00
Boulder Sprinters
1d3cc72d3e boulder-oracle-sprint: Merged to [5028].
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 23:26:37 +00:00
Boulder Sprinters
0e53925f7d boulder-oracle-sprint: Added Oracle DROP SEQUENCE emission to the sqlclear command.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 23:23:50 +00:00
Boulder Sprinters
04af379c70 boulder-oracle-sprint: Fixed #4056: Added optional "tablespace" parameter to Fields to specify a tablespace for the column's index in backends that support it, primarily for use in Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 22:40:53 +00:00
Boulder Sprinters
e076f10cb5 boulder-oracle-sprint: Fixed autoindexes_primary_keys value for several
backends


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 22:37:22 +00:00
Boulder Sprinters
b38a73e01a boulder-oracle-sprint: Improved field type detection in QuerySet.resolve_columns. Now the only case where we have to guess at the field type is when select fields are added with QuerySet.extra.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5024 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 16:14:32 +00:00
Boulder Sprinters
e558b9aac4 boulder-oracle-sprint: Fixes #4055: Added "tablespace" parameter to model metadata options to support specification of tablespaces, primarily for Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-17 23:22:49 +00:00
Boulder Sprinters
99b7f9c185 boulder-oracle-sprint: Non-functional changes to bring the branch closer to the current state of the trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5021 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-17 19:19:38 +00:00
Boulder Sprinters
1d90cbd758 boulder-oracle-sprint: Fixed #3748.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-17 16:56:13 +00:00
Boulder Sprinters
ab622a35bd boulder-oracle-sprint: Merged to [5018]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-17 15:57:16 +00:00
Boulder Sprinters
e2a3b9e1bd boulder-oracle-sprint: Merged to [5013]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-16 23:24:58 +00:00
Boulder Sprinters
9699399eee boulder-oracle-sprint: Made the iterator methods of _QuerySet, DateQuerySet and ValueQuerySet each call a resolve_columns method on each row, which may be implemented in the backend to do custom processing on the result rows. Oracle uses this to resolve lob objects and to correctly cast datetime objects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-16 22:31:55 +00:00
Boulder Sprinters
531235c3bf boulder-oracle-sprint: Fixed TimeField.get_db_prep_lookup to include a dummy date in the time string so that Oracle doesn't barf on it.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-13 20:40:22 +00:00
Boulder Sprinters
48c0460605 boulder-oracle-sprint: Made DateField.get_db_prep_save convert datetime.date objects to datetime.datetime, since cx_Oracle doesn't handle datetime.date under Python 2.3.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5006 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-13 17:50:19 +00:00
Boulder Sprinters
8051e715b9 boulder-oracle-sprint: Merged to [4993].
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-12 23:39:58 +00:00
Boulder Sprinters
5729876275 boulder-oracle-sprint: Fixed datetime behavior. All tests pass now in
Python 2.5!  (Fixing 2.3 failures next...)


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-12 23:36:22 +00:00
Boulder Sprinters
ed9c870e45 boulder-oracle-sprint: Fixed serializers_regress test case failure by
changing IPAdressField to be a VARCHAR2(15) on Oracle.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-12 21:05:21 +00:00
Boulder Sprinters
8062ebbb18 boulder-oracle-sprint: Fixed bug where admin interface would insert arbitrary primary key data into a TextField, causing an Oracle error in some instances.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-12 17:53:21 +00:00
Boulder Sprinters
be1357a496 boulder-oracle-sprint: DRY refactoring in Oracle backend to reuse sequence reset
code.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4996 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-11 17:30:16 +00:00
Boulder Sprinters
f44429224a boulder-oracle-sprint: Fixed fixtures_regress test case by implementing
get_sql_sequence_reset() in the Oracle backend.  Thanks, Ian Kelly.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-10 23:41:54 +00:00
Boulder Sprinters
0b57189aa2 boulder-oracle-sprint: Fixed many_to_many and m2m_recursive test case failures.
Thanks, Ian Kelly.  DB code was relying on cursor.rowcount, which has different 
behavior on Oracle and isn't very consistent elsewhere.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-10 21:41:34 +00:00
Boulder Sprinters
8ceeb6d8cb boulder-oracle-sprint: Merged to [4989]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09 23:39:40 +00:00