<table><tr><td style="">vmatare updated this revision to Diff 78327.<br />vmatare edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-c5jcenzvxguuekj/">(Show Details)</a><br />vmatare edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-yootnsjmjh6l6wu/">(Show Details)</a><br />vmatare 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/D28165">View Revision</a></tr></table><br /><div><div><p>storage: distinguish MariaDB and MySQL for API quirks</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"></pre></div>
<p>MariaDB doesn't seem to be updating the API the way MySQL does, so exclude it from the version hackery.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">MySQL 8.0 onward changed a few details in the client API, and embedded support has apparently been removed completely. This PR makes minimally invasive changes that fix the related compile errors in a (hopefully) backward compatible manner.<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"><br />
<br />
Please let me know if I should submit the PR somewhere else.</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">compile against MySQL <= 5, MySQL >= 8, and various versions of MariaDB (though it seems they didn't touch that part of the API yet)</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R181 Amarok</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D28165?vs=78114&id=78327">https://phabricator.kde.org/D28165?vs=78114&id=78327</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28165">https://phabricator.kde.org/D28165</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core-impl/storage/sql/mysql-shared/MySqlStorage.h</div></div></div><br /><div><strong>To: </strong>vmatare<br /><strong>Cc: </strong>wbauer, amarok-devel, jfowkes, pgomes, nicolamori, jyasi, mfraser, ryanmccoskrie, semareit, eridani, eoinoneill, jackyalcine, nhuisman, paul, domson, yaohanchen, malteveerman, markey, James, tbettler, Smar, ricktimmis, asturmlechner, schweingruber, heikobecker<br /></div>