Only list field types that are not strings. see #7171

git-svn-id: http://svn.automattic.com/wordpress/trunk@10726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-03-06 01:06:00 +00:00
parent d6ee6062a6
commit cb712c991d
2 changed files with 8 additions and 7 deletions

View File

@@ -718,7 +718,6 @@ class wpdb {
$formatted_fields[] = $form;
}
$sql = "INSERT INTO $table (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')";
error_log($sql);
return $this->query( $this->prepare( $sql, $data) );
}
@@ -764,7 +763,6 @@ class wpdb {
}
$sql = "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres );
error_log($sql);
return $this->query( $this->prepare( $sql, array_merge(array_values($data), array_values($where))) );
}