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?