diff options
Diffstat (limited to 'framework/Testing')
-rwxr-xr-x | framework/Testing/Data/TDbConnection.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/framework/Testing/Data/TDbConnection.php b/framework/Testing/Data/TDbConnection.php index 92708907..b1dd739a 100755 --- a/framework/Testing/Data/TDbConnection.php +++ b/framework/Testing/Data/TDbConnection.php @@ -425,7 +425,7 @@ class TDbConnection extends TComponent * @return string the properly quoted string * @see http://www.php.net/manual/en/function.PDO-quote.php */ - public function quoteString($str) + public function quoteValue($str) { if($this->getActive()) return $this->_pdo->quote($str); @@ -434,6 +434,20 @@ class TDbConnection extends TComponent } /** + * + * Prado 3.1 compatibility method. + * + * @see {@link quoteValue} + * + * @param string $str + * @return string + */ + public function quoteString($str) + { + return $this->quoteValue($str); + } + + /** * Quotes a table name for use in a query. * @param string table name * @return string the properly quoted table name |