Re: Sqlite format string

2009-08-30 Thread Sergio Charpinel Jr.
Thank you very much. 2009/8/30 Cameron Simpson > On 29Aug2009 17:27, Sergio Charpinel Jr. > 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 d

Re: Sqlite format string

2009-08-29 Thread Cameron Simpson
On 29Aug2009 17:27, Sergio Charpinel Jr. 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 ? This: ( user ) is

Re:Re: Sqlite format string

2009-08-29 Thread ivanko . rus
29.08.2009 17:26 пользователь Tim Chase написал: ivanko@gmail.com wrote: 29.08.2009 15:40 пользователь "Sergio Charpinel Jr." sergiocharpi...@gmail.com> написал: Thanks. Do you know if both of them works for mysql too? 2009/8/29 ivanko@gmail.com> 29.08.2009 15:2

Re: Sqlite format string

2009-08-29 Thread Tim Chase
ivanko@gmail.com wrote: 29.08.2009 15:40 пользователь "Sergio Charpinel Jr." написал: Thanks. Do you know if both of them works for mysql too? 2009/8/29 ivanko@gmail.com> 29.08.2009 15:27 пользователь "Sergio Charpinel Jr." sergiocharpi...@gmail.com> написал: Actually, this wo

Re:Re: Sqlite format string

2009-08-29 Thread ivanko . rus
29.08.2009 15:40 пользователь "Sergio Charpinel Jr." написал: Thanks. Do you know if both of them works for mysql too? 2009/8/29 ivanko@gmail.com> 29.08.2009 15:27 пользователь "Sergio Charpinel Jr." sergiocharpi...@gmail.com> написал: Actually, this works for any string (it doesn'

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

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-lis