Hi,
You can try:
My.query.filter_by(id=id).delete()
(If your object can use the .query syntax)
or
session.query(My).filter_by(id=id).delete()
On Apr 13, 2010 6:12 AM, jo jose.soa...@sferacarta.com wrote:
Hi all,
I'm trying migrate from 0.3 to 0.6
I don't know how to delete an object
in the
no attribute '_sa_iterator'
I don't have a good test for this, but i'm trying to create one.
Does anyone knows why this is happening?
Thanks!
--
Fernando Takai
--
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send email to sqlalch
with it. I had a similar problem recently, it was…
I'm not trying to access anything, i'm just trying to merge the object
into the session…
On Sat, Mar 27, 2010 at 3:25 PM, Michael Bayer mike...@zzzcomputing.com wrote:
On Mar 27, 2010, at 12:42 PM, Fernando Takai wrote:
Hi all!
I'm running
to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.
--
Fernando Takai
--
You received this message because you are subscribed to the Google
the local_filename variable before, so it's not expired (afaik).
On Nov 17, 2009, at 1:35 PM, Michael Bayer wrote:
Fernando Takai wrote:
I have changed my code to be like this:
job = session.merge(job)
# Merge docs says that object does not get into the session
session.add(job)
log.info
my attributes are loaded - i use all of them before
and no error occurs.
Maybe there's something wrong with the way i'm getting the session:
session = Session.object_session(job)
if not session:
session = Session()
On Nov 16, 2009, at 3:27 PM, Michael Bayer wrote:
Fernando Takai wrote
Hi all!
I've experiencing this problem for some time now and even after
debugging, i could not find why it happens.
I have a medium sized multi-thread application that manipulates
SQLAlchemy objects - the objects are passed from thread to thread, so,
when i load an instance i close the session.