You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autocomplete is not working in case table name quoted by "`" symbols #16227
Hi @williamdes@Jay04653
After digging deeper, I think the problem is with CodeMirror. An ajaxCall to db_sql_autocomplete.php is giving correct tables for both aliases with " ` " and without " ` ".
The problem is with sql-hint.js of the code mirror
It's really annoying because by default PHPMyAdmin displays tables with "`" and in case you need to add joins or filters you have to remove this quotation every time or just ignore an autocomplete feature and just type SQL query.
Activity
ankush-0x90 commentedon Jun 26, 2020
Hi @williamdes @Jay04653
After digging deeper, I think the problem is with CodeMirror. An ajaxCall to
db_sql_autocomplete.phpis giving correct tables for both aliases with " ` " and without " ` ".The problem is with
sql-hint.jsof the code mirrorhttps://github.com/codemirror/CodeMirror/blob/c0120793f1e9986b631411b6112e207866d3db81/addon/hint/sql-hint.js#L190
during finding eachWord what if codemirror just replaced " ` " also
We can raise issue in codemirror, if this is the real bug causing trouble
Jay04653 commentedon Jun 26, 2020
Hi @asprazz
Thank you for the debug!
It's really annoying because by default PHPMyAdmin displays tables with "`" and in case you need to add joins or filters you have to remove this quotation every time or just ignore an autocomplete feature and just type SQL query.
williamdes commentedon Jun 26, 2020
Hi @asprazz !
Thank you for the debug, could you open an issue at CodeMirror and link it here ?
ankush-0x90 commentedon Jun 27, 2020
Ok @williamdes .
ankush-0x90 commentedon Jun 27, 2020
@Jay04653 If you are using development version of phpmyadmin, then you can edit Sql-Hint file in CodeMirror :)
A temparary fix, if it helps 😃
Jay04653 commentedon Sep 28, 2020
It was fixed on CodeMirror side, so now we can include this fix in the next PHPMyAdmin release.
williamdes commentedon Sep 28, 2020
Could you mention the version that fixed this issue ?
Jay04653 commentedon Sep 28, 2020
Seems it was fixed but not released yet :(
nina-py commentedon Sep 30, 2020
@Jay04653 , @williamdes , I submitted a pull request (with a one-character change! :)) which was merged a couple of days ago. Looking at the releases history ( https://github.com/codemirror/CodeMirror/releases ), it seems that there's a new minor release on the 20th of each month, so we will have our fix on the 20th of October at the earliest.
williamdes commentedon Sep 30, 2020
Very cool !
Links:
shucon commentedon Oct 20, 2020
Related: #16314
Also a CodeMirror issue.
shucon commentedon Oct 20, 2020
Ah, it's 20th October today as well. We might get a release today.
williamdes commentedon Oct 23, 2020
https://github.com/codemirror/CodeMirror/releases/tag/5.58.2
Add a ChangeLog entry for #16227