fixed "type" error for errno, and potential error on lastid()
This commit is contained in:
parent
3c4438895f
commit
14a642ab78
|
@ -28,7 +28,7 @@ class DB_Sql {
|
||||||
private $num_rows;
|
private $num_rows;
|
||||||
|
|
||||||
/* public: current error number and error text */
|
/* public: current error number and error text */
|
||||||
private $Errno = 0;
|
private $Errno;
|
||||||
private $Error;
|
private $Error;
|
||||||
|
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ class DB_Sql {
|
||||||
}
|
}
|
||||||
|
|
||||||
function lastid() {
|
function lastid() {
|
||||||
return $this->pdo_query->lastInsertId();
|
return $this->pdo_instance->lastInsertId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* public: sequence numbers */
|
/* public: sequence numbers */
|
||||||
|
|
Loading…
Reference in New Issue