logilab-database #296130 [sqlserver] crash in LIMIT/OFFSET emulation [open]

File "C:\src\confs\pagode2\cubicweb\web\views\primary.py", line 121, in entity_call
    self.render_entity(entity)
  File "C:\src\confs\pagode2\cubicweb\web\views\primary.py", line 129, in render_entity
    boxes = self._prepare_side_boxes(entity)
  File "C:\src\confs\pagode2\cubicweb\web\views\primary.py", line 310, in _prepare_side_boxes
    rset = self._relation_rset(entity, rschema, role, dispctrl, limit=limit)
  File "C:\src\confs\pagode2\cubicweb\web\views\primary.py", line 348, in _relation_rset
    rset = entity.related(rschema.type, role, limit=limit)
  File "C:\src\confs\pagode2\cubicweb\entity.py", line 1013, in related
    rset = self._cw.execute(rql, {'x': self.eid})
  File "C:\src\confs\pagode2\cubicweb\dbapi.py", line 525, in execute
    build_descr=build_descr, **self._txid())
  File "C:\src\confs\pagode2\cubicweb\server\repository.py", line 790, in execute
    build_descr)
  File "C:\src\confs\pagode2\cubicweb\server\querier.py", line 632, in execute
    results = plan.execute()
  File "C:\src\confs\pagode2\cubicweb\server\querier.py", line 174, in execute
    result = step.execute()
  File "C:\src\confs\pagode2\cubicweb\server\ssplanner.py", line 416, in execute
    inputmap)
  File "C:\src\confs\pagode2\cubicweb\server\sources\native.py", line 529, in syntax_tree_search
    sql, qargs, cbs = self._rql_sqlgen.generate(union, args, varmap)
  File "C:\src\confs\pagode2\cubicweb\server\sources\rql2sql.py", line 745, in generate
    sql = self.union_sql(union)
  File "C:\src\confs\pagode2\cubicweb\server\sources\rql2sql.py", line 755, in has_text_need_distinct_union_sql
    return self.__union_sql(union, needalias)
  File "C:\src\confs\pagode2\cubicweb\server\sources\rql2sql.py", line 759, in union_sql
    return self.select_sql(union.children[0], needalias)
  File "C:\src\confs\pagode2\cubicweb\server\sources\rql2sql.py", line 892, in select_sql
    sqlsortterms)
  File "C:\src\confs\pagode2\logilab\database\sqlserver2005.py", line 188, in sql_add_limit_offset
    split[0] = aliases_cols[idx][1]
IndexError: list index out of range
prioritynormal
typebug
done in<not specified>
closed by<not specified>