Project

General

Profile

« Previous | Next » 

Revision 12868

bugfix: lib/sql_io.py: put_table(): is_literals: `return sql.value(cur): need to use sql.value_or_none() instead to support multi-row functions, such as _split() used in specimens data`

View differences:

trunk/lib/sql_io.py
806 806
    if cur != None and row_ct_ref != None and cur.rowcount >= 0:
807 807
        row_ct_ref[0] += cur.rowcount
808 808
    
809
    if is_literals: return sql.value(cur)
809
    if is_literals: return sql.value_or_none(cur) # support multi-row functions
810 810
    
811 811
    if is_function: pass # pkeys table already created
812 812
    elif has_joins:

Also available in: Unified diff