# HG changeset patch # User Marcin Kuzminski # Date 2010-05-30 14:59:18 # Node ID 5ba66bb4ca9535d95ba64844e375b5a55c5fbd5b # Parent fcab58c43ea10e8c53a5e52c73503c0b2e1e12a7 timerprox sqlformatting update for update and delete keywords diff --git a/pylons_app/lib/timerproxy.py b/pylons_app/lib/timerproxy.py --- a/pylons_app/lib/timerproxy.py +++ b/pylons_app/lib/timerproxy.py @@ -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')\