> > cur.execute("INSERT INTO images (image) VALUES (?)", data_obj)
>
>In my case, I'm using psycopg2 for PostgreSQL. I just did a test,
> and it doesn't seem to like the ? syntax. I'll check the 
> documentation
> to see if there's a setting to have it use the ? syntax.

It may well be the Python conventioin of a % sign in that case,
I was just flagging up that some drivers use different markers.
The key thing is, as you say, to check the driver docs to find
out what syntax it needs and use it, not to try to force it into
any particular flavour..

Alan G. 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to