var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Problems Updating Programatically a Database Using MySQLdb-pyton
I have a problem with mysqldb-python for python 2.7.
I am unsure about .add() and .merge()
As far as I can tell the Identity Mapping structure created by session_maker
would not accept objects with same id. Therefore, we need to use merge.
How do I update the db, should I do something like
Help please. Thank you.
# didn't work, now try merge
Last edited by quaere1verum; 02-12-15 at 13:59.
MySQLdb Python problem updating DB
I have problems updating my database programaticallly.
I am using .merge() and .add() apparently the difference is in the id used for objects in
the identity mapping used by session_maker.
I need to update the database, but currently I am unsuccessful any idea.
I have also tried.
The code still doesn't update the db. Help?
Tags for this Thread