changeset 236:5ba66bb4ca95

timerprox sqlformatting update for update and delete keywords
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 30 May 2010 16:59:18 +0200
parents fcab58c43ea1
children f188b156603d
files pylons_app/lib/timerproxy.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')\