开发者

mysqldb doesn't write on db

开发者 https://www.devze.com 2023-03-02 15:34 出处:网络
I\'m trying to execute a query in a Magento database, the problem is that the Python API doesn\'t write to my database. It seems that the query is never executed.

I'm trying to execute a query in a Magento database, the problem is that the Python API doesn't write to my database. It seems that the query is never executed.

I suppose that the queries are correctly generated, they work in mysql cli. Maybe I don't use the API correctly, here is the code:

http://pa开发者_JS百科stebin.com/5pUJc7ve


I think you forgot the commit.

Add

connessione.commit()
connessione.close()
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号