The docblocks for the various db_query() functions list all the valid placeholders except for the %n (numeric) placeholder. Patch attached.

CommentFileSizeAuthor
#1 904880_db_query_docs.patch4.69 KBgdd

Comments

gdd’s picture

Status: Active » Needs review
StatusFileSize
new4.69 KB

Should be backported all the way back to 4.6 if we want to be truly nitpicky about it.

dave reid’s picture

History 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

gdd’s picture

Oh so it looks like it is a Drupal 6-only thing then

jhodgdon’s picture

Status: Needs review » Closed (duplicate)