diff options
author | cash <cash.costello@gmail.com> | 2011-11-10 21:31:39 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-10 21:31:39 -0500 |
commit | 8cca602e2bc1c65b99a2d0c2a60255ab09ca4f3d (patch) | |
tree | 5aa9e914f083bb6c815a970ebc763fe2f56801cb /engine/lib/database.php | |
parent | 8cf115081e7a168eb3f3c74b279dac7f4e258287 (diff) | |
download | elgg-8cca602e2bc1c65b99a2d0c2a60255ab09ca4f3d.tar.gz elgg-8cca602e2bc1c65b99a2d0c2a60255ab09ca4f3d.tar.bz2 |
Fixes #4071 hellekin was right - it was a bad idea to format queries
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r-- | engine/lib/database.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index ddfda8f4c..c44fdf1fd 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -400,8 +400,6 @@ function get_data_row($query, $callback = "") { function elgg_query_runner($query, $callback = null, $single = false) { global $CONFIG, $DB_QUERY_CACHE; - $query = elgg_format_query($query); - // Since we want to cache results of running the callback, we need to // need to namespace the query with the callback and single result request. // http://trac.elgg.org/ticket/4049 @@ -467,7 +465,6 @@ function elgg_query_runner($query, $callback = null, $single = false) { function insert_data($query) { global $CONFIG, $DB_QUERY_CACHE; - $query = elgg_format_query($query); elgg_log("DB query $query", 'NOTICE'); $dblink = get_db_link('write'); @@ -499,7 +496,6 @@ function insert_data($query) { function update_data($query) { global $CONFIG, $DB_QUERY_CACHE; - $query = elgg_format_query($query); elgg_log("DB query $query", 'NOTICE'); $dblink = get_db_link('write'); @@ -530,7 +526,6 @@ function update_data($query) { function delete_data($query) { global $CONFIG, $DB_QUERY_CACHE; - $query = elgg_format_query($query); elgg_log("DB query $query", 'NOTICE'); $dblink = get_db_link('write'); |