Saturday, April 28, 2012

django and oracle --

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



No comments:

Post a Comment