<table><tr><td style="">jfita updated this revision to Diff 81717.<br />jfita edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-aor7a6gmptr4mru/">(Show Details)</a><br />jfita added a comment.
</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/D29327">View Revision</a></tr></table><br /><div><div><p>Fix summary</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>I added a new rule that simply returns any <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">other non-recognized</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">unrecognized character as a scan</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">character</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">error</span> to the parser so that it can detect the erroneous input and<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> present a</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">present a </span>more accurate position of where the error is. With that change<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> Kexi moves the</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Kexi moves the </span>cursor next to the “a”.<br />
<br />
I also <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">chang</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">add</span>ed the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">last</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">same</span> rule <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">of</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">to</span> the INITIAL start condition to match any<br />
character, because otherwise it also reports the error at the position<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> of the</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">of the </span>semicolon in queries like the following:<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R15 KDb</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D29327?vs=81716&id=81717">https://phabricator.kde.org/D29327?vs=81716&id=81717</a></div></div><br /><div><strong>BRANCH</strong><div><div>3.2</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29327">https://phabricator.kde.org/D29327</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/parser/KDbSqlScanner.l<br />
src/parser/generated/sqlscanner.cpp</div></div></div><br /><div><strong>To: </strong>jfita, staniek, piggz<br /><strong>Cc: </strong>Kexi-Devel-list, barman, wicik, staniek<br /></div>