Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
9b23008a
Commit
9b23008a
authored
Oct 06, 2008
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#300239
by Crell: updated documentation of db_insert().
parent
c462ab10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
includes/database/query.inc
includes/database/query.inc
+7
-1
No files found.
includes/database/query.inc
View file @
9b23008a
...
...
@@ -360,6 +360,10 @@ public function useDefaults(Array $fields) {
* If the database does not support delayed INSERT queries, this method
* has no effect.
*
* Note that for a delayed query there is no serial ID returned, as it won't
* be created until later when the query runs. It should therefore not be
* used if the value of the ID is known.
*
* @param $delay
* If TRUE, this query is delay-safe and will run delayed on supported databases.
* @return
...
...
@@ -376,7 +380,9 @@ public function delay($delay = TRUE) {
* @return
* The last insert ID of the query, if one exists. If the query
* was given multiple sets of values to insert, the return value is
* undefined.
* undefined. If the query is flagged "delayed", then the insert ID
* won't be created until later when the query actually runs so the
* return value is also undefined.
*/
public
function
execute
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment