<table><tr><td style="">staniek created this revision.<br />staniek added a reviewer: piggz.<br />Restricted Application added a project: KDb.<br />staniek requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12873">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">maintain relations between connections, queries and column infos</li>
<li class="remarkup-list-item">fix cloning queries with ORDER BY</li>
<li class="remarkup-list-item">update and add autotests</li>
</ul>
<p>FIXED-IN:3.2<br />
BUG:392753<br />
CCBUG:393705</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Test 1: Open report and query from <a href="https://bugs.kde.org/show_bug.cgi?id=392753#c0" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=392753#c0</a> in design and data views.<br />
Expected: works, no crashes</p>
<p>Test 2: Try these on a standard Persons and Cars test:<br />
select id from cars order by owner;<br />
select id from cars order by owner, model, id;<br />
select id, model from cars order by 2, 1;</p>
<p>Expected: works, no crash</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R15 KDb</div></div></div><br /><div><strong>BRANCH</strong><div><div>392753</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12873">https://phabricator.kde.org/D12873</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/CMakeLists.txt<br />
autotests/OrderByColumnTest.cpp<br />
autotests/OrderByColumnTest.h<br />
src/KDbNativeStatementBuilder.cpp<br />
src/KDbOrderByColumn.cpp<br />
src/KDbOrderByColumn.h<br />
src/KDbQueryColumnInfo.cpp<br />
src/KDbQueryColumnInfo.h<br />
src/KDbQuerySchema.cpp<br />
src/KDbQuerySchema_p.h</div></div></div><br /><div><strong>To: </strong>staniek, piggz<br /><strong>Cc: </strong>Kexi-Devel-list, barman, wicik, staniek<br /></div>