1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-22 05:33:10 +02:00

phpDoc simplified & typos

This commit is contained in:
David Grudl
2013-12-30 23:19:42 +01:00
parent 2c3fe68c6c
commit fa5b7678f4
37 changed files with 17 additions and 152 deletions

View File

@@ -2,11 +2,7 @@
/**
* This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/
@@ -320,7 +316,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 ? "%'" : "'");