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

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 17 00:26:35 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                        |   Resolution:          
 Keywords:  dev-feedback has-patch early  |  
------------------------------------------+---------------------------------
Comment (by DD32):

 > How about hard-coding an array of tables, columns, and types so we can
 avoid any extra queries?

 That was an option, But in my testing, Its rare any extra queries are
 needed, at least on the most commonly accessed tables, My main reasoning
 for the approach i took was so that it would be usable by all
 applications/plugins(custom tables), and BackPress without having to
 define the list for every application.

 Of course, Go ahead and hard code them if you want :)

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


More information about the wp-trac mailing list