#27458: Oracle backend giving ORA-00911 : Invalid Character, querying with a
literal "%s"
-------------------------------------+-------------------------------------
               Reporter:  Gabriel    |          Owner:  nobody
  Canto de Souza                     |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  1.10
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:  cx_oracle ora-00911
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 This happened after trying to create a new object in the Django Admin
 interface which has a many to many field with another class, the full html
 debug page is attached to the ticket

 The last query before the error was raised is this :

 'SELECT "GEO"."DJANGO_PESSOA"."OBJECTID" FROM "GEO"."DJANGO_PESSOA" INNER
 '
 'JOIN "GEO"."DJANGO_DOCUMENTO"_PF951 ON ("GEO"."DJANGO_PESSOA"."OBJECTID"
 = '
 '"GEO"."DJANGO_DOCUMENTO"_PF951."DJANGOTESTPESSOA_ID") WHERE '
 '"GEO"."DJANGO_DOCUMENTO"_PF951."DJANGOTESTDOCUMENTO_ID" = %s'

 {{{
 #!div style="font-size: 80%"
 models.py:
   {{{#!python
 from __future__ import unicode_literals
 from django.db import models

 class DjangoTestPessoa(models.Model):
     objectid = models.BigIntegerField(primary_key=True,unique=True)
     nome = models.CharField(max_length=150, blank=True, null=True)

     class Meta:
         db_table = '"GEO"."DJANGO_PESSOA"'


 class DjangoTestDocumento(models.Model):
     objectid = models.BigIntegerField(primary_key=True,unique=True)
     numero = models.CharField(max_length=150, blank=True, null=True)
     pessoas = models.ManyToManyField(DjangoTestPessoa)

     class Meta:
         db_table = '"GEO"."DJANGO_DOCUMENTO"'
   }}}
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27458>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.689a157705c476534c0a3f2da3c65d7e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to