Changeset - 5ba66bb4ca95
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-05-30 16:59:18
marcin@python-works.com
timerprox sqlformatting update for update and delete keywords
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pylons_app/lib/timerproxy.py
Show inline comments
 
@@ -23,6 +23,8 @@ def format_sql(sql):
 
    sql = one_space_trim(sql)
 
    sql = sql\
 
        .replace('SELECT', '\n\tSELECT \n\t')\
 
        .replace('UPDATE', '\n\tUPDATE \n\t')\
 
        .replace('DELETE', '\n\tDELETE \n\t')\
 
        .replace('FROM', '\n\tFROM')\
 
        .replace('ORDER BY', '\n\tORDER BY')\
 
        .replace('LIMIT', '\n\tLIMIT')\
0 comments (0 inline, 0 general)