Commit 3e5f7825 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Rewrote some doc. Extend sql commands to be recognized in QFQ vars (have been...

Rewrote some doc. Extend sql commands to be recognized in QFQ vars (have been already subscribed in that way in Manual.rst).
parent 3f83ed2a
Pipeline #1421 passed with stage
in 2 minutes and 21 seconds
......@@ -1273,14 +1273,12 @@ Default
Type message violate
--------------------
typeMessageViolate:
* 'c' - The violated class will shown, surrounded by '!!'. E.g. '!!digit!!'. This is the default.
* 'e' - Instead of the value an empty string will be shown.
* '0' - Instead of the value the string '0' will be shown.
* 'custom text ...' - Instead of the value the custom text will be shown. If the text contains a ':', that one needs to
be escaped by '\'.
If a value violates the sanitize class, instead of content on of the following texts will be set.
* 'c' - The violated class will be set as content, surrounded by '!!'. E.g. '!!digit!!'. This is the default.
* 'e' - Instead of the value an empty string will be set as content.
* '0' - Instead of the value the string '0' will be set as content.
* 'custom text ...' - Instead of the value the custom text will be set as content. If the text contains a ':', that one needs to
be escaped by '\'. Check `variable-escape`_ qualifier 'C' to let QFQ do the colon escaping.
.. _`sql-variables`:
......
......@@ -43,7 +43,8 @@ class Evaluate {
private $startDelimiterLength = 0;
private $endDelimiter = '';
private $endDelimiterLength = 0;
private $sqlKeywords = array('SELECT ', 'INSERT ', 'DELETE ', 'UPDATE ', 'SHOW ', 'REPLACE ');
private $sqlKeywords = array('SELECT ', 'INSERT ', 'DELETE ', 'UPDATE ', 'SHOW ', 'REPLACE ', 'TRUNCATE ', 'DESCRIBE ', 'EXPLAIN ', 'SET ');
private $escapeTypeDefault = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment