Revision 7393
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/sql_io.py | ||
---|---|---|
341 | 341 |
col_defaults={}, on_error=exc.reraise): |
342 | 342 |
'''Recovers from errors. |
343 | 343 |
Only works under PostgreSQL (uses INSERT RETURNING). |
344 |
IMPORTANT: Must be run at the *beginning* of a transaction. |
|
345 | 344 |
|
346 | 345 |
Warning: This function's insert/if not exists get algorithm does not support |
347 | 346 |
database triggers that populate fields covered by a unique constraint. Such |
Also available in: Unified diff
sql_io.py: put_table(): Removed no longer applicable requirement that it be run at the beginning of a transaction, which was only required when the output table was locked during the function call