diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-27 22:50:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-27 22:50:09 +0000 |
commit | 7228b485f5be522d1fabef26918bf57f5a38a4d7 (patch) | |
tree | 0265eb0c0ea23304127b70a22f0fecaac9122ecb | |
parent | 5c99a06f9f30b23eb587e2bc3c3e4b5dc95ac54f (diff) | |
download | brdo-7228b485f5be522d1fabef26918bf57f5a38a4d7.tar.gz brdo-7228b485f5be522d1fabef26918bf57f5a38a4d7.tar.bz2 |
- Patch #105461 by jvandyk: fixed code comments.
-rw-r--r-- | includes/database.mysql.inc | 5 | ||||
-rw-r--r-- | includes/database.mysqli.inc | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc index aa87b5bff..0e553e3f3 100644 --- a/includes/database.mysql.inc +++ b/includes/database.mysql.inc @@ -279,11 +279,6 @@ function db_affected_rows() { * User-supplied arguments to the query should be passed in as separate parameters * so that they can be properly escaped to avoid SQL injection attacks. * - * Note that if you need to know how many results were returned, you should do - * a SELECT COUNT(*) on the temporary table afterwards. db_num_rows() and - * db_affected_rows() do not give consistent result across different database - * types in this case. - * * @param $query * A string containing an SQL query. * @param ... diff --git a/includes/database.mysqli.inc b/includes/database.mysqli.inc index e22e3ada4..607da0512 100644 --- a/includes/database.mysqli.inc +++ b/includes/database.mysqli.inc @@ -264,11 +264,6 @@ function db_affected_rows() { * User-supplied arguments to the query should be passed in as separate parameters * so that they can be properly escaped to avoid SQL injection attacks. * - * Note that if you need to know how many results were returned, you should do - * a SELECT COUNT(*) on the temporary table afterwards. db_num_rows() and - * db_affected_rows() do not give consistent result across different database - * types in this case. - * * @param $query * A string containing an SQL query. * @param ... |