Re: Sqlite format string

2009-08-30 Thread Sergio Charpinel Jr.
Thank you very much. 2009/8/30 Cameron Simpson c...@zip.com.au On 29Aug2009 17:27, Sergio Charpinel Jr. sergiocharpi...@gmail.com wrote: | Hi, | I have this statement cursor.execute(SELECT * from session_attribute WHERE | sid=%s, ( user )) | and I'm receiving this error : | | TypeError:

Sqlite format string

2009-08-29 Thread Sergio Charpinel Jr.
Hi, I have this statement cursor.execute(SELECT * from session_attribute WHERE sid=%s, ( user )) and I'm receiving this error : TypeError: not all arguments converted during string formatting What is wrong ? -- Sergio Roberto Charpinel Jr. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sqlite format string

2009-08-29 Thread Tim Chase
I have this statement cursor.execute(SELECT * from session_attribute WHERE sid=%s, ( user )) and I'm receiving this error : TypeError: not all arguments converted during string formatting Two possibilities occur to me: 1) the 2nd parameter to execute() usually needs to be a tuple (or maybe a

Re: Sqlite format string

2009-08-29 Thread Cameron Simpson
On 29Aug2009 17:27, Sergio Charpinel Jr. sergiocharpi...@gmail.com wrote: | Hi, | I have this statement cursor.execute(SELECT * from session_attribute WHERE | sid=%s, ( user )) | and I'm receiving this error : | | TypeError: not all arguments converted during string formatting | | What is wrong