Project

General

Profile

« Previous | Next » 

Revision 2172

sql.py: mk_insert_select(): embeddable: Don't cache function_query because function def could change and then change back

View differences:

lib/sql.py
496 496
    LANGUAGE sql
497 497
    AS $$'''+mogrify(db, query, params)+''';$$;
498 498
'''
499
        run_query(db, function_query, cacheable=True)
499
        run_query(db, function_query)
500
            # don't cache because function def could change and then change back
500 501
        
501 502
        # Return query that uses function
502 503
        return mk_select(db, function+'() AS f ('+returning+')', start=0,

Also available in: Unified diff