-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot update #15
Comments
I can't reproduce what you said. |
No response for long time. |
I'm having this same problem. conn = yield tornado_mysql.connect(host='host', port=3306, user='root', passwd='', db='dbname')
cur = conn.cursor()
yield cur.execute("select id, ad_id, someother_id, another_id, onemore_id from links where id = %s" %idd )
found = cur.fetchone()
if found:
print 'yes found'
yield cur.execute("update imp set imp_count = imp_count + 1 where id = %s" %idd) Thoughts? |
@scoopseven You didn't commit, do you? |
I don't see commit anywhere in the docs or codebase. cur.commit()? |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sql2='update watch_monitor_profile set data='test' where id=43127'
yield cur1.execute(sql2)
but it not work,and nothing happend
The text was updated successfully, but these errors were encountered: