On Sep 26, 2012, at 5:55 AM, Ladislav Lenart wrote:

> Hello.
> 
> This is great! Unfortunately it does not work for me.
> 
> First, the "cursor_execute" event does not exist (at least in SA 0.7.X).

right, "before_cursor_execute", sorry.

> I found
> "before_cursor_execute" which has equivalent signature. I debugged it and:
> * My callback function is successfully registered.
> * It is called for statements like DROP TABLE, CREATE TABLE and also for each
> select from a pg tables (I use postgres).
> * However, it is NOT called for ANY q.all() or foo.bar where both emit SELECT
> statements. Note that when these calls are made, the callback function that
> worked so far is still registered...
> 
> Do you have any idea what could be wrong?

perhaps you registered the event with a specific Engine or Connection that is 
not the one involved in the test.   I can guarantee you all SQL goes through 
the same channels.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to