Tuesday, May 1, 2012

Re: django and oracle --

Simple one.... you are missing  item  just before ['prezzo']  :-)

On 28 April 2012 18:30, gmail <marco.giardina@gmail.com> wrote:
hello django boys,

i hope someone here can help me. i have a problem with django e oracle.
above the code with problem:

insert = """insert into modello (title, descrizione, url, prezzo, sconto)  values (:title, :descrizione, :url,                                                      :prezzo, :sconto)"""
 try: 
              self.c.execute(insert,{'title':item['title'], 'descrizione':item['descrizione'],                                                   'url':item['url'], 'prezzo':['prezzo'], 'sconto':item['sconto']})

when try this code the system report this error:
ORA-01484:arrays can only be bound to PL/SQL statement

** any items is a list of different values for title,descrizione etc etc

thanks
marco



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment