aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/database.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 7f012fc17..e2a92c1cd 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -150,7 +150,7 @@
}
if (mysql_errno($dblink))
- throw new DatabaseException(mysql_error($dblink));
+ throw new DatabaseException(mysql_error($dblink) . " QUERY: " . $query);
if (empty($resultarray)) {
return false;
@@ -185,7 +185,7 @@
}
if (mysql_errno($dblink))
- throw new DatabaseException(mysql_error($dblink));
+ throw new DatabaseException(mysql_error($dblink) . " QUERY: " . $query);
return false;
}
@@ -209,7 +209,7 @@
return mysql_insert_id($dblink);
if (mysql_errno($dblink))
- throw new DatabaseException(mysql_error($dblink));
+ throw new DatabaseException(mysql_error($dblink) . " QUERY: " . $query);
return false;
}
@@ -233,7 +233,7 @@
return mysql_affected_rows();
if (mysql_errno($dblink))
- throw new DatabaseException(mysql_error($dblink));
+ throw new DatabaseException(mysql_error($dblink) . " QUERY: " . $query);
return false;
@@ -258,7 +258,7 @@
return mysql_affected_rows();
if (mysql_errno($dblink))
- throw new DatabaseException(mysql_error($dblink));
+ throw new DatabaseException(mysql_error($dblink) . " QUERY: " . $query);
return false;
}