Re: Problem with format string / MySQL cursor

2007-10-21 Thread John Nagle
Dennis Lee Bieber wrote: > I should also add that I'm still using a somewhat older MySQLdb (one > reason I haven't upgraded Python to 2.5 series -- finding trusted binary > builds of the third-party stuff is a pain...) What, you don't trust the build from a World of Warcraft guild?

Re: Problem with format string / MySQL cursor

2007-10-21 Thread Gabriel Genellina
En Sat, 20 Oct 2007 18:40:38 -0300, Dennis Lee Bieber <[EMAIL PROTECTED]> escribi�: > On Fri, 19 Oct 2007 18:50:20 -0300, "Gabriel Genellina" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >> If the MySQLdb adapter actually converts and inserts the arguments >> itself >> i

Re: Problem with format string / MySQL cursor

2007-10-19 Thread Gabriel Genellina
En Fri, 19 Oct 2007 05:32:04 -0300, Dennis Lee Bieber <[EMAIL PROTECTED]> escribió: > On Thu, 18 Oct 2007 13:40:53 -0700, Florian Lindner > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >> That works! Thanks! But a weird error message for this solution... > > Not really

Re: Problem with format string / MySQL cursor

2007-10-18 Thread Florian Lindner
On 18 Okt., 22:08, Paul McNett <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Oct 19, 7:32 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > >> Hello, > >> I have a string: > > >> INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`, > >> `gid`, `password`) VALUES (%s, %s,

Re: Problem with format string / MySQL cursor

2007-10-18 Thread Paul McNett
[EMAIL PROTECTED] wrote: > On Oct 19, 7:32 am, Florian Lindner <[EMAIL PROTECTED]> wrote: >> Hello, >> I have a string: >> >> INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`, >> `gid`, `password`) VALUES (%s, %s, %s, %s, %i, %i, %s) >> >> that is passed to a MySQL cursor from MySQ

Re: Problem with format string / MySQL cursor

2007-10-18 Thread timaranz
On Oct 19, 7:32 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > I have a string: > > INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`, > `gid`, `password`) VALUES (%s, %s, %s, %s, %i, %i, %s) > > that is passed to a MySQL cursor from MySQLdb: > > ret = cursor.execute(sql,

Problem with format string / MySQL cursor

2007-10-18 Thread Florian Lindner
Hello, I have a string: INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`, `gid`, `password`) VALUES (%s, %s, %s, %s, %i, %i, %s) that is passed to a MySQL cursor from MySQLdb: ret = cursor.execute(sql, paras) paras is: ('flindner', '[EMAIL PROTECTED]', '/home/flindner/', '/home