Revision 5024
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
216 | 216 |
in_table = sql_gen.Table(strings.ustr(full_in_table), |
217 | 217 |
srcs=full_in_table.srcs, is_temp=True) # prepend schema to name |
218 | 218 |
sql.copy_table_struct(db, full_in_table, in_table) |
219 |
try: sql.add_row_num(db, in_table, sql.pkey_col) |
|
220 |
except sql.DatabaseErrors: pass # already has pkey |
|
219 | 221 |
cur = sql.insert_select(db, in_table, None, sql.mk_select(db, |
220 | 222 |
full_in_table, limit=this_limit, start=start)) |
221 | 223 |
|
Also available in: Unified diff
db_xml.py: put_table(): Subsetting in_table: Add a row number column if in_table does not already have a pkey