-
The first time I learned of the PyPi comments is when the following comment appeared:
"The mysqldb download address isn't set properly, outside of that the mysql db wrapper is extremely helpful! (Blehk, 2009-10-22, points)" [http://pypi.python.org/pypi/MySQL-python/1.2.3c1]
This is not really a bad comment. It's actually specific to the PyPI link itself, and it was referring to a problem I...
2009-11-13 12:39:38 UTC in Python Package Index
-
libmysqlclient_r.so is not on your default library load path. You don't say what OS you are using (but obviously something POSIX), so you'll have to do your own research on how to correct this.
You can also build MySQLdb with a statically-linked library. The [README][1] describes how to do this.
[1]...
2009-11-05 18:03:11 UTC in MySQL for Python
-
1.2.2 or 1.2.3c1 should work fine.
2009-11-05 17:53:59 UTC in MySQL for Python
-
adustman changed the public information on the MySQL for Python project.
2009-11-03 22:03:23 UTC in MySQL for Python
-
adustman changed the public information on the MySQL for Python project.
2009-11-03 22:01:09 UTC in MySQL for Python
-
There's a reason why "%.15g" was used instead of repr; I have to do some research to figure out why.
2009-11-03 21:45:04 UTC in MySQL for Python
-
In the trunk version, it will (eventually) be capable of automatically applying conversions to individual columns, based on the database/table/column name or other factors.
Try changing your table schema to use the DOUBLE PRECISION(M,D) syntax, i.e. something like DOUBLE PRECISION(60,53), or perhaps just DOUBLE(60).
2009-11-03 21:34:32 UTC in MySQL for Python
-
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
MySQL FLOAT is 4 bytes, DOUBLE is 8 bytes. Looks like precision can be as long as 53 digits.
Just for kicks, try:
insert into test values ('3.14159265358979323846264338327950288');
and see if that changes the result.
I don't think you have mentioned your MySQL version yet.
Also, my testing in pure Python:
In [13]...
2009-11-03 21:27:32 UTC in MySQL for Python
-
Try changing that line to:
return repr(value)
2009-11-03 21:00:39 UTC in MySQL for Python
-
Try using MacPorts:
http://www.macports.org/
Then:
sudo port install py26-mysql
There is definitely an architectural mismatch going on, though. Nothing really I can do about that. If you are using a 64-bit Python, you need 64-bit MySQL, and that's all there is to it.
2009-11-03 20:48:11 UTC in MySQL for Python