1
0
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:
David Grudl
2012-01-03 05:14:44 +01:00
parent dbb72b769b
commit 74a139974c
8 changed files with 17 additions and 17 deletions

View File

@@ -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;