diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-28 11:11:36 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-28 11:11:36 +0000 |
commit | c90d20249eac10672caa8801596a27520221a59e (patch) | |
tree | 88c1118d21dd0be6b05617d9c6f37e4e34f6662b /engine/lib | |
parent | 6c12b4208f1c8c611a8c2325efbd95d12de6a49a (diff) | |
download | elgg-c90d20249eac10672caa8801596a27520221a59e.tar.gz elgg-c90d20249eac10672caa8801596a27520221a59e.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Throws exception if fields are missing on a select query
git-svn-id: https://code.elgg.org/elgg/trunk@735 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/database.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index f5e4c64db..0358d9744 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -460,6 +460,8 @@ $sql .= " $fields from "; } + else + throw new DatabaseException("Fields missing on a select style query"); } else throw new DatabaseException("Unrecognised or unspecified query type."); |