1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-17 19:37:13 +02:00
This commit is contained in:
David Grudl
2013-10-16 21:16:37 +02:00
parent 1b38d13422
commit 3b1e9e2632
2 changed files with 4 additions and 4 deletions

View File

@@ -320,7 +320,7 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver, IDibiResultDr
$value = pg_escape_string($this->connection, $value);
} else {
$value = pg_escape_string($value);
}
}
$value = strtr($value, array( '%' => '\\\\%', '_' => '\\\\_'));
return ($pos <= 0 ? "'%" : "'") . $value . ($pos >= 0 ? "%'" : "'");