Project

General

Profile

« Previous | Next » 

Revision 5713

sql.py: Added function_param0_type()

View differences:

lib/sql.py
1214 1214
    except DuplicateException: return True # overloaded function
1215 1215
    else: return True
1216 1216

  
1217
def function_param0_type(db, function):
1218
    qual_function = sql_gen.Literal(function.to_str(db))
1219
    return value(run_query(db, '''\
1220
SELECT proargtypes[0]::regtype
1221
FROM pg_proc
1222
WHERE oid = '''+qual_function.to_str(db)+'''::regproc
1223
'''
1224
        , cacheable=True, log_level=4))
1225

  
1217 1226
##### Structural changes
1218 1227

  
1219 1228
#### Columns

Also available in: Unified diff