Changeset 55732 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 05/08/2023 10:35:38 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r55694 r55732 1438 1438 * Prepares a SQL query for safe execution. 1439 1439 * 1440 * Uses sprintf()-like syntax. The following placeholders can be used in the query string:1441 * 1442 * - %d(integer)1443 * - %f(float)1444 * - %s(string)1445 * - %i(identifier, e.g. table/field names)1440 * Uses `sprintf()`-like syntax. The following placeholders can be used in the query string: 1441 * 1442 * - `%d` (integer) 1443 * - `%f` (float) 1444 * - `%s` (string) 1445 * - `%i` (identifier, e.g. table/field names) 1446 1446 * 1447 1447 * All placeholders MUST be left unquoted in the query string. A corresponding argument … … 1478 1478 * @since 6.2.0 Added `%i` for identifiers, e.g. table or field names. 1479 1479 * Check support via `wpdb::has_cap( 'identifier_placeholders' )`. 1480 * This preserves compatibility with sprintf(), as the C version uses1480 * This preserves compatibility with `sprintf()`, as the C version uses 1481 1481 * `%d` and `$i` as a signed integer, whereas PHP only supports `%d`. 1482 1482 * 1483 1483 * @link https://www.php.net/sprintf Description of syntax. 1484 1484 * 1485 * @param string $query Query statement with sprintf()-like placeholders.1485 * @param string $query Query statement with `sprintf()`-like placeholders. 1486 1486 * @param array|mixed $args The array of variables to substitute into the query's placeholders 1487 1487 * if being called with an array of arguments, or the first variable … … 3320 3320 * @type int $length The column length. 3321 3321 * @type string $type One of 'byte' or 'char'. 3322 * } 3322 3323 */ 3323 3324 public function get_col_length( $table, $column ) {
Note: See TracChangeset
for help on using the changeset viewer.