The problem is that sql statemenets can be large and logging them all
would blow up the file.

The last sql statement is in db._lastsql so you can do a try catch and
print (or log) the value of that variable on error.



On Mar 31, 7:34 pm, chris_g <chrisgu...@gmail.com> wrote:
> Currently, my sql.log contains the DAL generated SQL statements that
> were used to generated the database schema.
> Is there a way to log all SQL statements that DAL generates? I am
> getting a SQL error after I customised my Auth tables for a legacy
> database, and I'd like to see exactly what SQL is being generated.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to