Project

General

Profile

« Previous | Next » 

Revision 2804

sql.py: get_cur_query(): Removed no longer used input_params parameter

View differences:

lib/sql.py
17 17

  
18 18
##### Exceptions
19 19

  
20
def get_cur_query(cur, input_query=None, input_params=None):
20
def get_cur_query(cur, input_query=None):
21 21
    raw_query = None
22 22
    if hasattr(cur, 'query'): raw_query = cur.query
23 23
    elif hasattr(cur, '_last_executed'): raw_query = cur._last_executed
24 24
    
25 25
    if raw_query != None: return raw_query
26
    else: return '[input] '+strings.ustr(input_query)+' % '+repr(input_params)
26
    else: return '[input] '+strings.ustr(input_query)
27 27

  
28 28
def _add_cursor_info(e, *args, **kw_args):
29 29
    '''For params, see get_cur_query()'''

Also available in: Unified diff