# HG changeset patch # User Marcin Kuzminski # Date 1275231558 -7200 # Node ID 5ba66bb4ca9535d95ba64844e375b5a55c5fbd5b # Parent fcab58c43ea10e8c53a5e52c73503c0b2e1e12a7 timerprox sqlformatting update for update and delete keywords diff -r fcab58c43ea1 -r 5ba66bb4ca95 pylons_app/lib/timerproxy.py --- a/pylons_app/lib/timerproxy.py Sun May 30 00:44:45 2010 +0200 +++ b/pylons_app/lib/timerproxy.py Sun May 30 16:59:18 2010 +0200 @@ -23,6 +23,8 @@ 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')\