nmdb的一个BUG

来源:互联网 发布:淘宝运营提成几个点 编辑:程序博客网 时间:2024/06/17 22:49

最近在为BUG抓狂,MySQL的,nmdb的,当然更多还是自己的。

 

nmdb的BUG是关于它的python binding的。一个同事发现,在一台机器上向nmdb写入一个值,在另一台机器上读不出。当时发现是32位系统的机器和64位系统的机器互相不能读取对方写的数据(当然是写到同一个nmdb里的)。于是给作者发邮件报告了这个BUG。通了几封邮件,附上一些测试文件,今天收到回信了:

 

The bug is in the python code, when autopickling is enabled (the default), it's possible that it doesn't even work when running across different machines (even if they are all 32 or 64 bits).

 

I'm about to leave, but to work around it you can disable the autopickling using:

 

         db.autopickle = False

 

and using strings as parameters.