Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:sunnysingh/database
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny Singh committed Oct 2, 2011
2 parents cc72b1c + d58274d commit 6a41de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion database.php
Expand Up @@ -108,9 +108,9 @@ public function query($query, $params = array()) {
} }
} else { } else {
$this->query_count_error++; $this->query_count_error++;
$debug_backtrace = debug_backtrace();
error_log("MySQL database error: ".$this->connection->error." for query ".$query." in ".$debug_backtrace[1]["file"]." on line ".$debug_backtrace[1]["line"]); error_log("MySQL database error: ".$this->connection->error." for query ".$query." in ".$debug_backtrace[1]["file"]." on line ".$debug_backtrace[1]["line"]);
if ($this->debug) { if ($this->debug) {
$debug_backtrace = debug_backtrace();
echo "Database error: ".$this->connection->error." for query <code>".$query."</code> in ".$debug_backtrace[1]["file"]." on line ".$debug_backtrace[1]["line"]; echo "Database error: ".$this->connection->error." for query <code>".$query."</code> in ".$debug_backtrace[1]["file"]." on line ".$debug_backtrace[1]["line"];
exit(); exit();
} }
Expand Down
4 changes: 2 additions & 2 deletions docs.md
Expand Up @@ -245,8 +245,8 @@ $db->add_filter("query", function($query) {


return str_replace( return str_replace(


array("accounts", "music"), array("accounts.", "music."),
array("bob_accounts", "bob_music"), array("bob_accounts.", "bob_music."),


$query); $query);


Expand Down

0 comments on commit 6a41de0

Please sign in to comment.