-
It's a good thing I read /r/Python. I'll have a look at this. :-)
08:13PM UTC on Jun 04 2009 in MySQL for Python
-
I don't know how you ended up with _mysql.py and _mysql.pyc . There should only be the _mysql.so (native code) library, thus your conflict. How did you build this?.
09:02PM UTC on May 27 2009 in MySQL for Python
-
That's a pretty common idiom, so I wouldn't call it silly. Mind using "list" as a variable name, though; it's not a reserved word in Python, but it is a built-in type and you could end up getting confusing results later.
Additionally I will pimp my recent blog entry about using decorators for such standard idioms...
09:00PM UTC on May 27 2009 in MySQL for Python
-
kylev committed revision 629 to the MySQL for Python SVN repository, changing 1 files.
10:30PM UTC on May 18 2009 in MySQL for Python
-
Can you give me a test case (example SELECT) so I can repro this and add it to our test suite? What type of SELECT error triggers this without throwing an exception?.
10:26PM UTC on May 18 2009 in MySQL for Python
-
This is fixed in SVN on the 1.2 branch and will be in the next 1.2 RC when it comes out.
Trunk is doing lots of conversion-related things differently, so we'll deal with that separately.
09:13PM UTC on May 18 2009 in MySQL for Python
-
kylev committed revision 628 to the MySQL for Python SVN repository, changing 1 files.
09:12PM UTC on May 18 2009 in MySQL for Python
-
This is not a MySQLdb problem per-se. You seem to lack the gcc compiler or don't have it on your search path. Work with someone that understands your particular Linux distribution to get the appropriate packages installed.
05:49PM UTC on May 17 2009 in MySQL for Python
-
The use of a semicolon (;) is a purely command line/interactive interface convention. It is not valid in a programmatic connection, and will give you this error (correctly).
Ideally, you'd use parameters too.
sql = "INSERT INTO sessions (IDCustomer) VALUES (%s)"
c = db.cursor()
c.execute(sql, (8,))
c.execute(sql, (9,))
Essentially, everywhere you'd put a semicolon in an...
07:38PM UTC on Apr 14 2009 in MySQL for Python
-
You have a fundamental problem with your Linux installation, this isn't a MySQLdb problem. You're missing all or most of the headers that come with the Linux kernel and are necessary to many things (really, nearly anything) built on glibc.
Work with people who know your distribution to fix any missing symlinks (maybe a link from /usr/include to the kernel source's include directory) or...
08:08PM UTC on Apr 07 2009 in MySQL for Python