summaryrefslogtreecommitdiff
path: root/django/core/db
AgeCommit message (Collapse)Author
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
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
2006-04-10Fixed #1590 -- Changed MySQL get_last_insert_id() implementation to use ↵Adrian Holovaty
cursor.lastrowid instead of a separate SELECT statement. Thanks, Andy Dustman git-svn-id: http://code.djangoproject.com/svn/django/trunk@2645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28Fixed #1500 -- Changed MySQL AutoField to be integer, not mediumint. Thanks, ↵Adrian Holovaty
ejf-django git-svn-id: http://code.djangoproject.com/svn/django/trunk@2582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28Fixed #1442 -- Fixed multithreading problem with various database backends. ↵Adrian Holovaty
Thanks, Eugene Lazutkin git-svn-id: http://code.djangoproject.com/svn/django/trunk@2579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01Added note to mysql backend about DATE_FORMAT not working. Refs #1423Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Implemented get_indexes() for Postgres backend, which means 'inspectdb' can ↵Adrian Holovaty
introspect primary keys and unique indexes for Postgres now. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Changed get_indexes() hook from [2346] to return 'primary_key' instead of ↵Adrian Holovaty
'keyname' git-svn-id: http://code.djangoproject.com/svn/django/trunk@2348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Added better docstring to get_indexes() for MySQL backendAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18Fixed #1286 -- Improved 'inspectdb' so that it introspects primary_key=True ↵Adrian Holovaty
and unique=True for MySQL. Thanks, gandalf@owca.info git-svn-id: http://code.djangoproject.com/svn/django/trunk@2346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17Fixed #1296 -- Made SlugField maxlength configurable. Thanks, MattAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04Fixed #1328 -- Improved 'inspectdb' to handle Python reserved words as field ↵Adrian Holovaty
names. Also updated docs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15Fixed #1062 -- Fixed database typecasting bug for DateTimeFields in SQLite. ↵Adrian Holovaty
Thanks, Nesh and cmaloney git-svn-id: http://code.djangoproject.com/svn/django/trunk@1971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09Fixed #1121 -- Changed MySQL backend to use correct character set in MySQL ↵Adrian Holovaty
4.1x/5.x on Win32. Thanks, hipertracker@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@1878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09Fixed #1034 -- Changed get_last_insert_id to quote database table name. ↵Adrian Holovaty
Thanks, rfugger git-svn-id: http://code.djangoproject.com/svn/django/trunk@1875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-20Fixed #1093 -- Fixed error in inspectdb from [1688]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16Fixed #646 -- inspectdb no longer fails on database tables with hyphen in ↵Adrian Holovaty
the name. Thanks for reporting, jack at xiph.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@1688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #1032 -- CREATE TABLE SQL in Postgres now quotes column name in ↵Adrian Holovaty
'CHECK' clause. Thanks, exoweb adrian git-svn-id: http://code.djangoproject.com/svn/django/trunk@1583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04reverted changes from [1534] and [1536] regarding ticket #966Georg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04fixes #989 - new 'no' translations for JavaScriptGeorg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #971 -- inspectdb for SQLite now introspects field types.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29Fixed #460 -- Added 'django-admin.py inspectdb' support for SQLite. Thanks, ↵Adrian Holovaty
Swaroop git-svn-id: http://code.djangoproject.com/svn/django/trunk@1484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21Fixed #800 -- Fixed bug in treatement of underscores and percent signs in ↵Adrian Holovaty
SQLite backend. In order to do this, changed OPERATOR_MAPPING in DB backends to include a format string of the field value, because ESCAPE comes after the field value. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20Gave EmailField a get_internal_type() method and removed it from DATA_TYPES ↵Adrian Holovaty
in all the database backends git-svn-id: http://code.djangoproject.com/svn/django/trunk@1316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15Fixed bug in postgresql backend that prevented the user of passwords with ↵Jacob Kaplan-Moss
spaces in them. Use pass *phrases*, folks, they're grrrrreat! git-svn-id: http://code.djangoproject.com/svn/django/trunk@1236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14Fixed #121 -- Django now quotes all names in SQL queries. Also added unit ↵Adrian Holovaty
tests to confirm. Thanks, Robin Munn and Sune. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13Moved db.quote_name from a model-level function to a method of ↵Adrian Holovaty
DatabaseWrapper for all database backends, so quote_name will be accessible in a 'from django.core.db import db' context git-svn-id: http://code.djangoproject.com/svn/django/trunk@1213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11Implemented quote_name() for ado_mssql DB backend. Thanks, Jakub Labath and ↵Adrian Holovaty
Eugene Lazutkin git-svn-id: http://code.djangoproject.com/svn/django/trunk@1176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01Added quote_name hook for each database backend. Refs #121. Thanks, Robin ↵Adrian Holovaty
Munn -- we miss you. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01Updated out-of-date docstring in django/core/db/__init__.pyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01Fixed #507 -- Changed MySQL backend so that it uses 'LIKE BINARY' for ↵Adrian Holovaty
case-sensitive comparisons -- contains, startswith and endswith. Thanks, Simon git-svn-id: http://code.djangoproject.com/svn/django/trunk@1036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Added DATA_TYPES_REVERSE to ado_mssql backendAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Changed get_random_function_sql for ado_mssql backend to use RAND(), which ↵Adrian Holovaty
is correct. Thanks, Jakub Labath git-svn-id: http://code.djangoproject.com/svn/django/trunk@936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Added get_table_list() to ado_mssql backendAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Thanks to ↵Adrian Holovaty
gmilas@gmail.com for the patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14Fixed #618 -- Added DATABASE_PORT setting. Thanks, EsajAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-12Fixed #589 -- Added FilePathField. It's available as an ORM field and as a ↵Adrian Holovaty
standalone field in django.core.formfields. Thanks, jay@skabber.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08Fixed #473 -- Added a MysqlDebugWrapper to use for MySQL with DEBUG=True. It ↵Adrian Holovaty
displays more informative error messages for MySQL warnings. Thanks for the patch, mlambert@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-28Fixed #553 -- Added django.core.meta.fields.Field.get_internal_type() hook, ↵Adrian Holovaty
for creating custom meta.Field subclasses. Thanks, wojtek3 git-svn-id: http://code.djangoproject.com/svn/django/trunk@713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26Fixed #489 -- Changed MySQL backend to use longtext for XMLFieldAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-24Fixed #489 -- Changed MySQL backend to use longtext instead of text for ↵Adrian Holovaty
TextField git-svn-id: http://code.djangoproject.com/svn/django/trunk@680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-19Fixed #491 -- Non-user connections are now supported for PostgreSQL. Thanks, ↵Adrian Holovaty
jafo@tummy.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02Fixed #404 -- Fixed random ordering in MySQL by abstracting random function ↵Adrian Holovaty
into db backend modules. Thanks, mattycakes@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19Fixed #350 -- 'offset' DB API parameter now works in MySQL 3. Tests from ↵Adrian Holovaty
[540] pass. Thanks, ronan@cremin.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #321 -- Undid [494], which assumed the installed version of MySQLdb ↵Adrian Holovaty
had a 'cursors.CursorNW'. Thanks for being consistent, MySQLdb. This opens #316 again. git-svn-id: http://code.djangoproject.com/svn/django/trunk@495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-14Fixed #316 -- Changed MySQL backend to disregard warningsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11Changed timestamp and time typecasting to preserve microseconds. Added unit ↵Adrian Holovaty
tests to test this behavior, and added a db_typecast unit test module. Refs #306. git-svn-id: http://code.djangoproject.com/svn/django/trunk@487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Changed [459] to use a better interface for the exceptionAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Changed MySQL backend so that it fails silently if rollback() isn't ↵Adrian Holovaty
supported (the code catches NotSupportedError exception) git-svn-id: http://code.djangoproject.com/svn/django/trunk@459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02Improved 'django-admin inspectdb' so that it detects ForeignKey ↵Adrian Holovaty
relationships -- PostgreSQL only git-svn-id: http://code.djangoproject.com/svn/django/trunk@395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02Added first stab at 'django-admin.py inspectdb', which takes a database name ↵Adrian Holovaty
and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90. git-svn-id: http://code.djangoproject.com/svn/django/trunk@384 bcc190cf-cafb-0310-a4f2-bffc1f526a37