datamapper/do — pull request #40 by patcheng (2012-10-05 23:45:08+00:00)
Title: wrapped debug() with isDebug() so statementToString() is only called when needed.

Was doing performance testing, data_objects.Command.execute_reader() was spending a lot of time in statementToString().

Looks like it's only called to provide debug() information. So wrapped around a newly created isDebug() method.