Commit Graph

53 Commits

Author SHA1 Message Date
Adrian Holovaty 11bcc7969d Fixed #1121 -- Changed MySQL backend to use correct character set in MySQL 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-09 01:55:37 +00:00
Adrian Holovaty 9f0deae249 Fixed #1034 -- Changed get_last_insert_id to quote database table name. Thanks, rfugger
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 01:33:59 +00:00
Adrian Holovaty 909cf0822f Fixed #1093 -- Fixed error in inspectdb from [1688]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-20 15:53:01 +00:00
Adrian Holovaty 676830165a Fixed #646 -- inspectdb no longer fails on database tables with hyphen in 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-16 05:13:25 +00:00
Adrian Holovaty 06a2dc42b2 Fixed #1032 -- CREATE TABLE SQL in Postgres now quotes column name in 'CHECK' clause. Thanks, exoweb adrian
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09 03:32:45 +00:00
Georg Bauer c464e57da9 reverted changes from [1534] and [1536] regarding ticket #966
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04 18:54:44 +00:00
Georg Bauer 4ef077c593 fixes #989 - new 'no' translations for JavaScript
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04 13:48:50 +00:00
Adrian Holovaty 9ede371c85 Fixed #971 -- inspectdb for SQLite now introspects field types.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 06:32:25 +00:00
Adrian Holovaty de7a336486 Fixed #460 -- Added 'django-admin.py inspectdb' support for SQLite. Thanks, Swaroop
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-29 02:05:32 +00:00
Adrian Holovaty f1a8869339 Fixed #800 -- Fixed bug in treatement of underscores and percent signs in 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-21 02:46:15 +00:00
Adrian Holovaty d778326c52 Gave EmailField a get_internal_type() method and removed it from DATA_TYPES in all the database backends
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:41:41 +00:00
Jacob Kaplan-Moss d0ec43298a Fixed bug in postgresql backend that prevented the user of passwords with 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-15 05:52:25 +00:00
Adrian Holovaty f6bf41e59a Fixed #121 -- Django now quotes all names in SQL queries. Also added unit 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-14 01:44:35 +00:00
Adrian Holovaty 3273c981f8 Moved db.quote_name from a model-level function to a method of 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-13 05:11:41 +00:00
Adrian Holovaty 565a194702 Implemented quote_name() for ado_mssql DB backend. Thanks, Jakub Labath and Eugene Lazutkin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 19:11:11 +00:00
Adrian Holovaty 23bb8c4a4b Added quote_name hook for each database backend. Refs #121. Thanks, Robin Munn -- we miss you.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:32:54 +00:00
Adrian Holovaty 7136eb8f3a Fixed #507 -- Changed MySQL backend so that it uses 'LIKE BINARY' for 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-11-01 01:08:13 +00:00
Adrian Holovaty 1f227df92b Added DATA_TYPES_REVERSE to ado_mssql backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 14:33:32 +00:00
Adrian Holovaty 8863e5dd11 Changed get_random_function_sql for ado_mssql backend to use RAND(), which is correct. Thanks, Jakub Labath
git-svn-id: http://code.djangoproject.com/svn/django/trunk@936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 14:02:46 +00:00
Adrian Holovaty b890e37ada Added get_table_list() to ado_mssql backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 13:59:58 +00:00
Adrian Holovaty 24154b2166 Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Thanks to gmilas@gmail.com for the patch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 01:37:16 +00:00
Adrian Holovaty f2088d456c Fixed #618 -- Added DATABASE_PORT setting. Thanks, Esaj
git-svn-id: http://code.djangoproject.com/svn/django/trunk@858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 03:43:01 +00:00
Adrian Holovaty 5f9fe6d403 Fixed #589 -- Added FilePathField. It's available as an ORM field and as a 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-12 04:14:21 +00:00
Adrian Holovaty a933432a70 Fixed #473 -- Added a MysqlDebugWrapper to use for MySQL with DEBUG=True. It 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-10-08 21:00:25 +00:00
Adrian Holovaty c1a16d54b0 Fixed #553 -- Added django.core.meta.fields.Field.get_internal_type() hook, 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-28 23:08:47 +00:00
Adrian Holovaty a978dbe779 Fixed #489 -- Changed MySQL backend to use longtext for XMLField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 02:36:53 +00:00
Adrian Holovaty 109a915775 Fixed #489 -- Changed MySQL backend to use longtext instead of text for TextField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-24 17:37:30 +00:00
Adrian Holovaty e7982bb5b0 Fixed #491 -- Non-user connections are now supported for PostgreSQL. Thanks, jafo@tummy.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-19 01:23:03 +00:00
Adrian Holovaty ccbea84834 Fixed #404 -- Fixed random ordering in MySQL by abstracting random function 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-09-02 20:46:00 +00:00
Adrian Holovaty e5e1ea602d Fixed #350 -- 'offset' DB API parameter now works in MySQL 3. Tests from [540] pass. Thanks, ronan@cremin.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19 21:51:14 +00:00
Adrian Holovaty bf108187a2 Fixed #321 -- Undid [494], which assumed the installed version of MySQLdb 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-15 00:50:31 +00:00
Adrian Holovaty a9b43edde2 Fixed #316 -- Changed MySQL backend to disregard warnings
git-svn-id: http://code.djangoproject.com/svn/django/trunk@494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-14 23:59:29 +00:00
Adrian Holovaty 7bac552069 Changed [459] to use a better interface for the exception
git-svn-id: http://code.djangoproject.com/svn/django/trunk@460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 04:48:47 +00:00
Adrian Holovaty 024e68e260 Changed MySQL backend so that it fails silently if rollback() isn't supported (the code catches NotSupportedError exception)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 04:45:10 +00:00
Adrian Holovaty f4e4ae96cb Improved 'django-admin inspectdb' so that it detects ForeignKey relationships -- PostgreSQL only
git-svn-id: http://code.djangoproject.com/svn/django/trunk@395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 22:33:39 +00:00
Adrian Holovaty d9401b78f1 Added first stab at 'django-admin.py inspectdb', which takes a database name 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
2005-08-02 17:08:24 +00:00
Jacob Kaplan-Moss 1510ca1a80 Fixed #227 -- the sqlite backend now correctly typecasts unicode objects to bytestrings (thanks hugo)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:49:57 +00:00
Jacob Kaplan-Moss 12ffae6df4 Fixed #197 -- thanks for finding that, mmarshall
git-svn-id: http://code.djangoproject.com/svn/django/trunk@309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:15:07 +00:00
Jacob Kaplan-Moss e320a0936e Added sqlite3 database backend -- somewhat tested, but probably not 100% perfect.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 03:15:43 +00:00
Jacob Kaplan-Moss 78cff1837a Refactor dictfetch* methods from mysql backend out into a seperate module; this is so that future db backends that need these functions can share them.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 15:48:20 +00:00
Adrian Holovaty 3e09a1fc1c Quick bugfix to [207] -- MySQL doesn't have ILIKE
git-svn-id: http://code.djangoproject.com/svn/django/trunk@208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 15:24:27 +00:00
Adrian Holovaty 5797066383 Added support for istartswith and iendswith in database API
git-svn-id: http://code.djangoproject.com/svn/django/trunk@207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 15:24:03 +00:00
Adrian Holovaty 8f4fa5a4e7 Fixed #69 -- Implemented dictfetchone(), dictfetchmany() and dictfetchall() for mysql DB backend. Thanks, Manuzhai!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 02:13:20 +00:00
Adrian Holovaty 78206fd08c Fixed #56 -- MySQL id columns are now UNSIGNED. Thanks, Manuzhai!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 13:53:45 +00:00
Adrian Holovaty b1c543d091 Factored out database-specific date_trunc behavior into dbmod.get_date_trunc_sql(). Refs #46
git-svn-id: http://code.djangoproject.com/svn/django/trunk@161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 20:16:06 +00:00
Adrian Holovaty 272b217557 Factored out database-specific date_extract behavior into dbmod.get_date_extract_sql(). Refs #46
git-svn-id: http://code.djangoproject.com/svn/django/trunk@159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 18:23:34 +00:00
Adrian Holovaty 6ae4def03b Fixed #42 -- OneToOneField now works with SQL generation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 17:22:17 +00:00
Adrian Holovaty 1e0fb3b7a3 Added helpful error message if DATABASE_NAME or DATABASE_USER is blank for postgresql
git-svn-id: http://code.djangoproject.com/svn/django/trunk@122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 22:21:50 +00:00
Adrian Holovaty caef61945d Fixed #39 -- Thanks for the research, deelan!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 21:10:25 +00:00
Adrian Holovaty 5721396426 Fixed inconsistent capitalization in [109]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:56:27 +00:00