Revision 3489
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
778 | 778 |
|
779 | 779 |
return query |
780 | 780 |
|
781 |
return_type = 'unknown'
|
|
782 |
if returning != None: return_type = sql_gen.ColType(returning).to_str(db)
|
|
781 |
return_type = sql_gen.CustomCode('unknown')
|
|
782 |
if returning != None: return_type = sql_gen.ColType(returning) |
|
783 | 783 |
|
784 | 784 |
if ignore: |
785 | 785 |
# Always return something to set the correct rowcount |
... | ... | |
805 | 805 |
while True: |
806 | 806 |
try: |
807 | 807 |
func = db.TempFunction(function_name) |
808 |
def_ = sql_gen.FunctionDef(func, 'SETOF '+return_type, query) |
|
808 |
def_ = sql_gen.FunctionDef(func, sql_gen.SetOf(return_type), |
|
809 |
query) |
|
809 | 810 |
|
810 | 811 |
run_query(db, def_.to_str(db), recover=True, cacheable=True, |
811 | 812 |
log_ignore_excs=(DuplicateException,)) |
Also available in: Unified diff
Use sql_gen.SetOf where SETOF was previously manually prepended