On Wednesday, June 4, 2014 2:38:34 AM UTC-6, Vittorio wrote:
>
> #models.py 
> ........... 
> class magazzino_vista_lista(models.Model): 
>     id_ordine = models.IntegerField(null=False, blank=False, 
> db_column='ID_ORDINE') 
>     cod_magazzino_galileo = models.CharField(max_length=48, 
> db_column='COD_MAGAZZINO_GALILEO') 
>     cod_magazzino_ext = models.CharField(max_length=48, 
> db_column='COD_MAGAZZINO_EXT') 
>     qta = models.IntegerField(null=False, blank=False, db_column='QTA') 
>     class Meta: 
>         managed = False 
>         db_table = u'noema.magazzino_vista_lista' 
>         verbose_name_plural = "CC specifica ordini vista" 
>
> ***** See the real oracle table is named 'noema.magazzino_vista_lista' as 
> in the sql I called before under python ***** 
>
>
Django currently doesn't understand schemas, and it quotes and treats the 
"noema." as being part of the table name rather than a schema. There's a 
hacky way (which basically amounts to SQL injection by the developer) to 
make it quote the schema and table separately, but I recommend creating 
synonyms to your tables in the schema that Django actually connects to.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8e7b975-60a9-4e7b-84ce-5f78412fd08b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to