mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 22:26:43 +02:00
DibiTranslator: fixed usage of modifier ?
This commit is contained in:
@@ -102,7 +102,7 @@ final class DibiTranslator extends DibiObject
|
||||
// simple string means SQL
|
||||
if (is_string($arg)) {
|
||||
// speed-up - is regexp required?
|
||||
$toSkip = strcspn($arg, '`[\'":%');
|
||||
$toSkip = strcspn($arg, '`[\'":%?');
|
||||
|
||||
if (strlen($arg) === $toSkip) { // needn't be translated
|
||||
$sql[] = $arg;
|
||||
|
Reference in New Issue
Block a user