Cambios de compatibilidad con librerias superiores

This commit is contained in:
Juan Ferrer Toribio 2015-03-27 20:16:37 +01:00
parent 5706ce20b7
commit 1874018b12
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Package: php-vn-lib
Version: 1.0-10
Version: 1.0-11
Architecture: all
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
Depends: php5-mysql

View File

@ -172,7 +172,7 @@ class Conn
return $this->conn->next_result ();
}
private function checkError ()
function checkError ()
{
if ($this->conn->errno)
{
@ -268,7 +268,7 @@ class Conn
case TYPE_DATE_TIME:
return strftime ('\'%Y-%m-%d %T\'', $value->getTimestamp ());
default:
return $this->conn->escape_string ($value);
return '\'' . $this->conn->escape_string ($value) . '\'';
}
else
return 'NULL';