Monday, June 25, 2012

Re: Custom SQL for creating django tables

On 12-06-25 1:35 AM, Mina Farid wrote:
> Hello guys,
> I am connection from django to Apache Derby. I am using IBM DB2 driver
> backend.
> Django tables are created in DB2 syntax, which is not very compatible
> with Derby.
>
> Is there any way that I can force django to customize the creation of
> SQL to a certain (say SQL standard) syntax?
>
That is what the database backends do.

If you are looking for "SQL standard" syntax, try using the Postgres
backend. The standards documents were used to implement the Postgres
parser (most other DBs did their own thing in some areas or have legacy
syntax to support).

hth

- Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment