Hi Michal -

See https://docs.djangoproject.com/en/dev/ref/databases/#naming-issues
-- Oracle has a limit on the length of table names, so Django has to
truncate some table names.

In the future, can you please direct questions like this to
django-users? Django-developers is for discussion of developing Django
itself, not usage questions.

Thanks and good luck,

Jacob

On Wed, Oct 31, 2012 at 1:11 PM, Michał Nowotka <[email protected]> wrote:
> Hello, I'm using django 1.4 with oracle backend
>
> In my models.py I have:
>
> class ProteinTherapeutics(models.Model):
> #...
>     class Meta:
>         db_table = 'mnowotka\".\"protein_therapeutics'
>         managed=False
>
> And this:
>
> ProteinTherapeutics.objects.exists()
>
> produces this SQL:
>
> SELECT *
> FROM
>   (SELECT ROWNUM AS "_RN",
>           "_SUB".*
>    FROM
>      (SELECT (1) AS "A"
>       FROM "MNOWOTKA"."PROTEIN_THERAPEFB7C") "_SUB"
>    WHERE ROWNUM <= 1)
> WHERE "_RN" > 0  [1.99ms]
>
> Can you help me, please?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-developers/-/kqFVlwNWEzgJ.
> 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-developers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en.

Reply via email to