Project

General

Profile

« Previous | Next » 

Revision 2640

sql.py: put(): Use a sql_gen.ColDict for row, just like in put_table(), so that put() will benefit from planned enhancements to sql_gen.ColDict, such as translating NULL to the default value of a NOT NULL column

View differences:

sql.py
859 859
    '''Recovers from errors.
860 860
    Only works under PostgreSQL (uses INSERT RETURNING).
861 861
    '''
862
    row = sql_gen.ColDict(row)
862 863
    if pkey_ == None: pkey_ = pkey(db, table, recover=True)
863 864
    
864 865
    try:

Also available in: Unified diff