Revision 4984
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
288 | 288 |
|
289 | 289 |
is_function = sql.function_exists(db, out_table) |
290 | 290 |
|
291 |
# Warn if inserting empty table rows |
|
292 |
if not mapping and not is_function: # functions with no args OK |
|
293 |
warnings.warn(UserWarning('Inserting empty table row(s)')) |
|
294 |
|
|
291 | 295 |
if is_function: out_pkey = 'result' |
292 | 296 |
else: out_pkey = sql.pkey(db, out_table, recover=True) |
293 | 297 |
out_pkey_col = sql_gen.as_Col(out_pkey, out_table) |
Also available in: Unified diff
sql_io.py: put_table(): Warn if inserting empty table rows