summaryrefslogtreecommitdiff
path: root/django/core/db/backends/postgresql.py
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-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-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-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-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-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-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-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-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-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-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-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
2005-07-19Added support for istartswith and iendswith in database APIAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17Factored out database-specific date_trunc behavior into ↵Adrian Holovaty
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-17Factored out database-specific date_extract behavior into ↵Adrian Holovaty
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-17Fixed #42 -- OneToOneField now works with SQL generationAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16Added helpful error message if DATABASE_NAME or DATABASE_USER is blank for ↵Adrian Holovaty
postgresql git-svn-id: http://code.djangoproject.com/svn/django/trunk@122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16Fixed inconsistent capitalization in [109]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16Changed postgresql DB backend so that it gives a helpful error message if ↵Adrian Holovaty
people are using psycopg 2 instead of version 1 git-svn-id: http://code.djangoproject.com/svn/django/trunk@109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13Changed db/backends/postgresql.py to add the password and host params only ↵Adrian Holovaty
if they're not blank git-svn-id: http://code.djangoproject.com/svn/django/trunk@6 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37