Revision 2640
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/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
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