[sqlalchemy] Re: SQL echoing?

2007-02-13 Thread saxon75

I traced through the source a little and it appears that line 309 in
orm/strategies.py is what's causing these lines to be printed.
Looking through the repository, I see it's been corrected as of
r2255.  (I was using r2251).



On Feb 11, 9:20 pm, Michael Bayer [EMAIL PROTECTED] wrote:
 something is setting echo=True somewhere or using Python's logging
 module and turning on SA logging.  see the docs/FAQ with regards to
 SA's usage of logging.

 On Feb 9, 11:42 am, saxon75 [EMAIL PROTECTED] wrote:

  settings.db_string = 'mysql://user:[EMAIL PROTECTED]/db'

  I'm using MySQL 4.1.14-Debian_5-log and the specific database uses the
  MyISAM engine.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~--~~~~--~~--~--~---



[sqlalchemy] Re: SQL echoing?

2007-02-09 Thread svilen

set metadata.engine.echo=False ?

which revision are u using? 
eventuly check for remaining print's somewhere:

grep -R ^ *print /sqlalchemy
or
grep -R ^[^#]*print /sqlalchemy

 One of my scripts keeps printing out a bunch of LAZY CLAUSE
 statements and I'd like to know how to turn that off.

 Here's what I'm doing:
  db = create_engine(settings.db_string)
  session = create_session(bind_to=db)
  cur_article =
  session.query(Article).selectfirst(Section.c.keyword==section,
  order_by=[desc(Article.c.timestamp)])

 This is likely a dumb question, but I couldn't figure it out on my
 own.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~--~~~~--~~--~--~---