server/msplanner.py
branchstable
changeset 7191 1e2d8e4d2c7b
parent 7188 b2c45b7396fb
child 7292 258c92805066
equal deleted inserted replaced
7190:f72e3f4666b0 7191:1e2d8e4d2c7b
  1418                                                               [ppi.system_source], insertedvars))
  1418                                                               [ppi.system_source], insertedvars))
  1419                         else:
  1419                         else:
  1420                             steps.append(ppi.build_final_part(minrqlst, solindices, inputmap,
  1420                             steps.append(ppi.build_final_part(minrqlst, solindices, inputmap,
  1421                                                               sources, insertedvars))
  1421                                                               sources, insertedvars))
  1422                 else:
  1422                 else:
  1423                     table = '_T%s%s' % (''.join(sorted(v._ms_table_key() for v in terms)),
  1423                     table = plan.make_temp_table_name('T%s' % make_uid(id(select)))
  1424                                         ''.join(sorted(str(i) for i in solindices)))
       
  1425                     table = plan.make_temp_table_name(table)
       
  1426                     ppi.build_non_final_part(minrqlst, solindices, sources,
  1424                     ppi.build_non_final_part(minrqlst, solindices, sources,
  1427                                              insertedvars, table)
  1425                                              insertedvars, table)
  1428         # finally: join parts, deal with aggregat/group/sorts if necessary
  1426         # finally: join parts, deal with aggregat/group/sorts if necessary
  1429         if atemptable is not None:
  1427         if atemptable is not None:
  1430             step = AggrStep(plan, selection, select, atemptable, temptable)
  1428             step = AggrStep(plan, selection, select, atemptable, temptable)