Project

General

Profile

Actions

Feature #5450

closed

DB Exception: highlight problematic text position, SQL syntax highlight

Added by Carsten Rose over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Elias Villiger
Target version:
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

squiggly_underline.PNG View squiggly_underline.PNG 128 KB Elias Villiger, 10.10.2018 18:54
Beispiel doppelter hit.PNG View Beispiel doppelter hit.PNG 208 KB Elias Villiger, 10.10.2018 18:57

Related issues

Related to QFQ - Feature #6992: DB exception: Syntax Highlight Some day maybe13.10.2018

Actions
Actions

Also available in: Atom PDF