This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import functools | |
| import sys | |
| import re | |
| from django.conf import settings | |
| from django.db import connection | |
| def shrink_select(sql): | |
| return re.sub("^SELECT(.+)FROM", "SELECT .. FROM", sql) | |
| def shrink_update(sql): |
NewerOlder