mirror of
https://github.com/dg/dibi.git
synced 2025-08-31 17:51:43 +02:00
- DibiTranslator: added brackets for %and %or (thanks to Jiri Sutera)
- DibiMySqlDriver: added common error constants
This commit is contained in:
@@ -693,7 +693,7 @@ class dibi
|
||||
static $keywords2 = 'ALL|DISTINCT|DISTINCTROW|AS|USING|ON|AND|OR|IN|IS|NOT|NULL|LIKE|TRUE|FALSE';
|
||||
|
||||
// insert new lines
|
||||
$sql = ' ' . $sql;
|
||||
$sql = " $sql ";
|
||||
$sql = preg_replace("#(?<=[\\s,(])($keywords1)(?=[\\s,)])#i", "\n\$1", $sql);
|
||||
|
||||
// reduce spaces
|
||||
|
Reference in New Issue
Block a user