Changeset 1108 in tests for trunk/tests/db.php
- Timestamp:
- 11/02/2012 05:06:01 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tests/db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/db.php
r1093 r1108 116 116 public function test_double_escaped_placeholders() { 117 117 global $wpdb; 118 $sql = $wpdb->prepare( "UPDATE test_table SET string_column = '%%f is a float and %%d is an int and %%s is a string'");119 $this->assertEquals( "UPDATE test_table SET string_column = '%f is a float and %d is an int and %s is a string'", $sql );118 $sql = $wpdb->prepare( "UPDATE test_table SET string_column = '%%f is a float, %%d is an int %d, %%s is a string', field = %s", 3, '4' ); 119 $this->assertEquals( "UPDATE test_table SET string_column = '%f is a float, %d is an int 3, %s is a string', field = '4'", $sql ); 120 120 } 121 121 }
Note: See TracChangeset
for help on using the changeset viewer.