Cambios de compatibilidad con librerias superiores
This commit is contained in:
parent
5706ce20b7
commit
1874018b12
|
@ -1,5 +1,5 @@
|
||||||
Package: php-vn-lib
|
Package: php-vn-lib
|
||||||
Version: 1.0-10
|
Version: 1.0-11
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
|
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
|
||||||
Depends: php5-mysql
|
Depends: php5-mysql
|
||||||
|
|
|
@ -172,7 +172,7 @@ class Conn
|
||||||
return $this->conn->next_result ();
|
return $this->conn->next_result ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkError ()
|
function checkError ()
|
||||||
{
|
{
|
||||||
if ($this->conn->errno)
|
if ($this->conn->errno)
|
||||||
{
|
{
|
||||||
|
@ -268,7 +268,7 @@ class Conn
|
||||||
case TYPE_DATE_TIME:
|
case TYPE_DATE_TIME:
|
||||||
return strftime ('\'%Y-%m-%d %T\'', $value->getTimestamp ());
|
return strftime ('\'%Y-%m-%d %T\'', $value->getTimestamp ());
|
||||||
default:
|
default:
|
||||||
return $this->conn->escape_string ($value);
|
return '\'' . $this->conn->escape_string ($value) . '\'';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return 'NULL';
|
return 'NULL';
|
||||||
|
|
Loading…
Reference in New Issue