-
I don't understand why you're ending up with an _mysql.py. There should really only be a _mysql.so. Can you do a completely clean build?
Also, what is the arch reported by "file _mysql.so" ?.
2009-12-10 22:22:10 UTC in MySQL for Python
-
Change committed to both 1.2br and trunk.
2009-12-08 00:21:35 UTC in MySQL for Python
-
kylev committed revision 635 to the MySQL for Python SVN repository, changing 1 files.
2009-12-08 00:20:52 UTC in MySQL for Python
-
kylev committed revision 634 to the MySQL for Python SVN repository, changing 1 files.
2009-12-08 00:17:13 UTC in MySQL for Python
-
We only support python >= 2.3, so I'll fix this with "k" shortly. Ignoring signedness and using "l" would just leave a different type of odd behavior to crop up later.
2009-12-07 21:56:03 UTC in MySQL for Python
-
All of this has already been fixed in the 1.2 branch and will be in a forthcoming release.
2009-11-20 20:03:51 UTC in MySQL for Python
-
Please include the version you're using. I think you're using the trunk version. If so, this is a duplicate of bug 2796727 and has already been fixed (though in a slightly different way).
http://mysql-python.svn.sourceforge.net/viewvc/mysql-python/trunk/MySQLdb/MySQLdb/cursors.py?revision=633&view=markup.
2009-11-19 22:54:25 UTC in MySQL for Python
-
The important thing to remember is that the escaping mechanism built into execute() is for column values. You'd use it for "INSERT INTO t (a, b) VALUES (%s, %s)" or "SELECT * FROM t WHERE col1=%s".
What you were doing is not value substitution, but dynamic SQL (creating a dynamic query with a changeable table name). That's the place for doing string-style (%...
2009-09-25 06:59:37 UTC in MySQL for Python
-
The default cursor can be used as an iterator:
for row in cursor:
print "Hey,", row[1], row[2]
Or you can just call fetchone() repeatedly (in a loop) to fetch a row at a time. It'll return None when the results are exhausted
while True:
row = cursor.fetchone()
if row is None:
break
print "Hey,", row[1], row[2].
2009-09-23 05:36:39 UTC in MySQL for Python
-
The intention is that you should only need to import MySQLdb. The \_mysql\_exceptions library is named with the leading underscore to hint that it is used internally only.
If you have a specific problem that happens when using MySQLdb.SomeException _only_, feel free to write a bug report. I'm puzzled by your claim that the isinstance() result changes over time. That is curious.
2009-09-15 18:23:46 UTC in MySQL for Python