id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses
12773,dbDelta fails to create multiple tables with IF NOT EXISTS,scibuff,,"using the dbDelta function with a query containing multiple CREATE TABLE will fail to create all but the last table: e.g
{{{
dbDelta(
CREATE TABLE IF NOT EXISTS `A` (...);
CREATE TABLE IF NOT EXISTS `B` (...);
)
}}}
will create only the B table
It seems that the function doesn't parse the SQL correctly and attempts to create a table called 'IF'",defect (bug),closed,normal,,General,2.9.2,normal,worksforme,"dbDelta, wpdb, create table",,