[wp-trac] Re: [WordPress Trac] #7171: wpdb::insert() & wpdb::update() need to allow typecasting of params.

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 20 21:34:06 GMT 2009


#7171: wpdb::insert() & wpdb::update() need to allow typecasting of params.
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  westi                       
     Type:  enhancement     |      Status:  assigned                    
 Priority:  normal          |   Milestone:  2.8                         
Component:  Administration  |     Version:  2.6                         
 Severity:  normal          |    Keywords:  dev-feedback has-patch early
----------------------------+-----------------------------------------------

Comment(by filosofo):

 I added a patch so that you can pass an optional argument to update or
 insert that specifies the format.  If a string, that format will be
 applied to all of the fields; if an array, then the array member format
 corresponds to the field value.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7171#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list