summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2012-04-16 12:41:26 (GMT)
committer Gábor Hojtsy2012-04-16 12:41:26 (GMT)
commit58f76e641637b91759e85bf1137eae6bbf1f5264 (patch)
treeee2db5d2d2c74770a1e6d27c5ab0e8619d3b91bf
parentd8592b22931b966d0fa2c61686dc8e3ff2b2a90d (diff)
Issue #300279 by achton, pillarsdotnet, unknownguy: Improve db_query_temporary() documentation to apply even if persistent database connections are used.
-rw-r--r--includes/database.mysql.inc10
-rw-r--r--includes/database.mysqli.inc8
-rw-r--r--includes/database.pgsql.inc8
3 files changed, 13 insertions, 13 deletions
diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc
index 01a7d17..37e4ae5 100644
--- a/includes/database.mysql.inc
+++ b/includes/database.mysql.inc
@@ -176,7 +176,7 @@ function db_fetch_array($result) {
*
* @param $result
* A database query result resource, as returned from db_query().
- *
+ *
* @return
* The resulting field or FALSE.
*/
@@ -253,9 +253,9 @@ function db_query_range($query) {
/**
* Runs a SELECT query and stores its results in a temporary table.
*
- * Use this as a substitute for db_query() when the results need to stored
- * in a temporary table. Temporary tables exist for the duration of the page
- * request.
+ * Use this as a substitute for db_query() when the results need to be stored
+ * in a temporary table.
+ *
* 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.
*
@@ -274,10 +274,10 @@ function db_query_range($query) {
*
* NOTE: using this syntax will cast NULL and FALSE values to decimal 0,
* and TRUE values to decimal 1.
- *
* @param $table
* The name of the temporary table to select into. This name will not be
* prefixed as there is no risk of collision.
+ *
* @return
* A database query result resource, or FALSE if the query was not executed
* correctly.
diff --git a/includes/database.mysqli.inc b/includes/database.mysqli.inc
index 613ff9e..c984c10 100644
--- a/includes/database.mysqli.inc
+++ b/includes/database.mysqli.inc
@@ -253,9 +253,9 @@ function db_query_range($query) {
/**
* Runs a SELECT query and stores its results in a temporary table.
*
- * Use this as a substitute for db_query() when the results need to stored
- * in a temporary table. Temporary tables exist for the duration of the page
- * request.
+ * Use this as a substitute for db_query() when the results need to be stored
+ * in a temporary table.
+ *
* 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.
*
@@ -274,10 +274,10 @@ function db_query_range($query) {
*
* NOTE: using this syntax will cast NULL and FALSE values to decimal 0,
* and TRUE values to decimal 1.
- *
* @param $table
* The name of the temporary table to select into. This name will not be
* prefixed as there is no risk of collision.
+ *
* @return
* A database query result resource, or FALSE if the query was not executed
* correctly.
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc
index 5fb0ccc..00ba095 100644
--- a/includes/database.pgsql.inc
+++ b/includes/database.pgsql.inc
@@ -287,9 +287,9 @@ function db_query_range($query) {
/**
* Runs a SELECT query and stores its results in a temporary table.
*
- * Use this as a substitute for db_query() when the results need to stored
- * in a temporary table. Temporary tables exist for the duration of the page
- * request.
+ * Use this as a substitute for db_query() when the results need to be stored
+ * in a temporary table.
+ *
* 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.
*
@@ -308,10 +308,10 @@ function db_query_range($query) {
*
* NOTE: using this syntax will cast NULL and FALSE values to decimal 0,
* and TRUE values to decimal 1.
- *
* @param $table
* The name of the temporary table to select into. This name will not be
* prefixed as there is no risk of collision.
+ *
* @return
* A database query result resource, or FALSE if the query was not executed
* correctly.