Make WordPress Core


Ignore:
Timestamp:
08/19/2011 03:01:35 PM (13 years ago)
Author:
dd32
Message:

Clarify %d is an integer in wpdb documentation. See #18407

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r18350 r18573  
    843843     *
    844844     * The following directives can be used in the query format string:
    845      *   %d (decimal number)
     845     *   %d (integer)
    846846     *   %s (string)
    847847     *   %% (literal percentage sign - no argument needed)
     
    850850     * Literals (%) as parts of the query must be properly written as %%.
    851851     *
    852      * This function only supports a small subset of the sprintf syntax; it only supports %d (decimal number), %s (string).
     852     * This function only supports a small subset of the sprintf syntax; it only supports %d (integer), %s (string).
    853853     * Does not support sign, padding, alignment, width or precision specifiers.
    854854     * Does not support argument numbering/swapping.
     
    11331133     * @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped).
    11341134     * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data.
    1135      *  A format is one of '%d', '%s' (decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
     1135     *  A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
    11361136     * @return int|false The number of rows inserted, or false on error.
    11371137     */
     
    11561156     * @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped).
    11571157     * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data.
    1158      *  A format is one of '%d', '%s' (decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
     1158     *  A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
    11591159     * @return int|false The number of rows affected, or false on error.
    11601160     */
     
    11771177     * @param array $data Data to insert (in column => value pairs).  Both $data columns and $data values should be "raw" (neither should be SQL escaped).
    11781178     * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data.
    1179      *  A format is one of '%d', '%s' (decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
     1179     *  A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
    11801180     * @return int|false The number of rows affected, or false on error.
    11811181     */
     
    12161216     * @param array $where A named array of WHERE clauses (in column => value pairs). Multiple clauses will be joined with ANDs. Both $where columns and $where values should be "raw".
    12171217     * @param array|string $format Optional. An array of formats to be mapped to each of the values in $data. If string, that format will be used for all of the values in $data.
    1218      *  A format is one of '%d', '%s' (decimal number, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
    1219      * @param array|string $format_where Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where.  A format is one of '%d', '%s' (decimal number, string).  If omitted, all values in $where will be treated as strings.
     1218     *  A format is one of '%d', '%s' (integer, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
     1219     * @param array|string $format_where Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where.  A format is one of '%d', '%s' (integer, string).  If omitted, all values in $where will be treated as strings.
    12201220     * @return int|false The number of rows updated, or false on error.
    12211221     */
Note: See TracChangeset for help on using the changeset viewer.