dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9164a4
)
Don't use the connection ID in error checks. If the connection itself fails, this...
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 10 Apr 2004 09:45:00 +0000
(09:45 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 10 Apr 2004 09:45:00 +0000
(09:45 +0000)
includes/Database.php
patch
|
blob
|
history
diff --git
a/includes/Database.php
b/includes/Database.php
index
d3ed827
..
89bdb4d
100644
(file)
--- a/
includes/Database.php
+++ b/
includes/Database.php
@@
-214,8
+214,8
@@
class Database {
function fieldName( $res, $n ) { return mysql_field_name( $res, $n ); }
function insertId() { return mysql_insert_id( $this->mConn ); }
function dataSeek( $res, $row ) { return mysql_data_seek( $res, $row ); }
function fieldName( $res, $n ) { return mysql_field_name( $res, $n ); }
function insertId() { return mysql_insert_id( $this->mConn ); }
function dataSeek( $res, $row ) { return mysql_data_seek( $res, $row ); }
- function lastErrno() { return mysql_errno(
$this->mConn
); }
- function lastError() { return mysql_error(
$this->mConn
); }
+ function lastErrno() { return mysql_errno(); }
+ function lastError() { return mysql_error(); }
function affectedRows() { return mysql_affected_rows( $this->mConn ); }
# Simple UPDATE wrapper
function affectedRows() { return mysql_affected_rows( $this->mConn ); }
# Simple UPDATE wrapper