Añadido método prepare() a la clase Db\Conn

This commit is contained in:
Juan Ferrer Toribio 2016-01-08 11:53:44 +01:00
parent a733993ee0
commit c73e018c0a
2 changed files with 13 additions and 1 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
php-vn-lib (1.207-deb8) stable; urgency=low
php-vn-lib (1.208-deb8) stable; urgency=low
* Initial Release.

View File

@ -164,6 +164,18 @@ class Conn
return $success;
}
/**
* Prepare an SQL statement for execution.
*
* @param string $query The SQL query
*
* @return mixed The statement object or %FALSE if an error occurred
**/
function prepare ($query)
{
return $this->conn->prepare ($query);
}
function storeResult ()
{
$result = $this->conn->store_result ();