Revision 2764
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
215 | 215 |
if params == [] or params == (): params = None |
216 | 216 |
# None turns off the mogrifier |
217 | 217 |
|
218 |
self._is_insert = query.upper().find('INSERT') >= 0
|
|
218 |
self._is_insert = query.startswith('INSERT')
|
|
219 | 219 |
self.query_lookup = _query_lookup(query, params) |
220 | 220 |
try: |
221 | 221 |
try: |
Also available in: Unified diff
sql.py: DbConn.DbCursor.execute(): Set _is_insert only if query starts with INSERT, so that function definitions containing INSERT are not cached as INSERT statements (exceptions only) themselves