#27458: Oracle backend giving ORA-00911 : Invalid Character, querying with a
literal "%s"
-------------------------------------+-------------------------------------
Reporter: Gabriel Canto de | Owner: Andrew
Souza | Nester
Type: Bug | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: Oracle | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Gabriel Canto de Souza:
Old description:
> 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"'
> }}}
> }}}
New description:
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27458#comment:11>
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/064.5df81ffc68fdd4e0606df0d8f31363c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.