Revision 3601
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
233 | 233 |
|
234 | 234 |
# Add fkey to parent |
235 | 235 |
if parent_ids_loc != None: |
236 |
no_empty.add(parent_ids_loc.table) |
|
236 |
if sql_gen.is_table_col(parent_ids_loc): |
|
237 |
no_empty.add(parent_ids_loc.table) |
|
237 | 238 |
parent_ptr = node.getAttribute('fkey') |
238 | 239 |
if parent_ptr == '': parent_ptr = pkey(name_of(node.parentNode)) |
239 | 240 |
row[parent_ptr] = parent_ids_loc |
Also available in: Unified diff
db_xml.py: put_table(): Adding fkey to parent: Fixed bug where should only add parent_ids_loc table to list of tables not to truncate if it's a column, because it is sometimes just a pkey value when that iteration contained only literals