Skip to content
Snippets Groups Projects
Commit 7228b485 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #105461 by jvandyk: fixed code comments.

parent 5c99a06f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -279,11 +279,6 @@ function db_affected_rows() { ...@@ -279,11 +279,6 @@ function db_affected_rows() {
* User-supplied arguments to the query should be passed in as separate parameters * 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. * 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 * @param $query
* A string containing an SQL query. * A string containing an SQL query.
* @param ... * @param ...
......
...@@ -264,11 +264,6 @@ function db_affected_rows() { ...@@ -264,11 +264,6 @@ function db_affected_rows() {
* User-supplied arguments to the query should be passed in as separate parameters * 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. * 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 * @param $query
* A string containing an SQL query. * A string containing an SQL query.
* @param ... * @param ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment