#1208: db_table with schema name does not work on PostgreSQL
---------------------------------------------------+------------------------
Reporter: [email protected] | Owner: adrian
Status: closed | Milestone:
Component: Database layer (models, ORM) | Version:
Resolution: duplicate | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by akaihola):
For anyone looking for a quick work-around, !MariusBoo
[http://code.djangoproject.com/ticket/6064#comment:12 noted] that you can
define your table like this:
{{{
db_table = '"django"."company"'
}}}
This will fool the quote function to think that your table is properly
quoted. This also means that you have to specify the schema for each table
manually.
I just verified that this solution works with r10837 and r11802 and
PostgreSQL 8.3.8.
--
Ticket URL: <http://code.djangoproject.com/ticket/1208#comment:6>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.