推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
liuxurong
V2EX  ›  Python

python+pymysql 写的代码,之后更新了mysql,换 InnoDB 引擎,代码就不能用了?

  •  
  •   liuxurong · Jan 4, 2014 · 5047 views
    This topic created in 4528 days ago, the information mentioned may be changed or developed.
    在 MyISAM 下没问题。

    这是什么原因呢?
    ixiaohei
        1
    ixiaohei  
       Jan 4, 2014   ❤️ 1
    innodb支持事务,是不是楼主对事务的操作不够啊,没有提交啥的,我不懂pythone,我是个java程序员
    VYSE
        3
    VYSE  
       Jan 4, 2014 via Android   ❤️ 1
    autocommit关了?
    likuku
        4
    likuku  
       Jan 4, 2014   ❤️ 1
    我在python里用MySQLdb这个来操作mysql的innodb表,没啥问题,不过都是简单sql语句,没用到事务,但有用到手动 commit
    julyclyde
        5
    julyclyde  
       Jan 4, 2014   ❤️ 1
    autocommit
    liuxurong
        6
    liuxurong  
    OP
       Jan 4, 2014
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1093 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 23:41 · PVG 07:41 · LAX 16:41 · JFK 19:41
    ♥ Do have faith in what you're doing.