Actions
Feature #5450
closedDB Exception: highlight problematic text position, SQL syntax highlight
Start date:
15.02.2018
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Vote:
Description
1) In der Exception koennte der Teil, den MySQL als problematisch ansieht, automatische markiert werden.
Message [ mysqli: 1064 ] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/ 100) WHERE gr_id=182953 AND gr_id2=698 /* Uebunsgleiter */ AND x_id3=0 /* Korr' at line 1
Am besten in 'DBException' oder 'AbstractException' (html sanatizing?), check ob die Message ein 'mysqli' Fehler ist, dann nach 'server version for the right syntax to use near' suchen und den Rest (bis auf 'at line 1') als Pattern suchen in SQL Raw markieren.
2) Evtl. koennte auch der gesamte SQL Text mit einem Syntax Hightlight ausgestattet werden.
Files
Related issues
Actions