The docblocks for the various db_query() functions list all the valid placeholders except for the %n (numeric) placeholder. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 904880_db_query_docs.patch | 4.69 KB | gdd |
The docblocks for the various db_query() functions list all the valid placeholders except for the %n (numeric) placeholder. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 904880_db_query_docs.patch | 4.69 KB | gdd |
Comments
Comment #1
gddShould be backported all the way back to 4.6 if we want to be truly nitpicky about it.
Comment #2
dave reidHistory on this, it looks like the %n placeholder was introduced as a result of a security issue in 6.3: http://drupalcode.org/viewvc/drupal/drupal/includes/database.inc?r1=1.92...
http://drupal.org/node/280571
Comment #3
gddOh so it looks like it is a Drupal 6-only thing then
Comment #4
jhodgdonDuplicate of
#609060: db_query() doc - list of % specs is incomplete