I try to execute update query with limit in Flask, using Flask-SQLAlchemy (not SQLAlchemy!).
db.session.query(ItemObject).filter_by(owner_type=0,item_id=item_id.decode('hex')).update({'owner_type': '1'})
When i try ".limit(1)" or "update({'owner_type': '1'}, mysql_limit=1)" i geting error
AttributeError: 'long' object has no attribute 'limit'
or
TypeError: update() got an unexpected keyword argument 'mysql_limit'
How can i make this query without using execute()?