Index: wp-admin/install-helper.php
===================================================================
--- wp-admin/install-helper.php	(revision 21469)
+++ wp-admin/install-helper.php	(working copy)
@@ -51,22 +51,17 @@
  * @param string $create_ddl Create database table SQL.
  * @return bool False on error, true if already exists or success.
  */
-function maybe_create_table($table_name, $create_ddl) {
+function maybe_create_table( $table_name, $create_ddl ) {
 	global $wpdb;
-	foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
-		if ($table == $table_name) {
-			return true;
-		}
-	}
-	//didn't find it try to create it.
-	$wpdb->query($create_ddl);
+	$query = $wpdb->prepare( "SHOW TABLES LIKE %s", $table_name );
+	if ( strtolower( $wpdb->get_var( $query ) ) == strtolower( $table_name ) )
+		return true;
+
+	// Didn't find it, so we need to try to create it.
+	$wpdb->query( $create_ddl );
+
 	// we cannot directly tell that whether this succeeded!
-	foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
-		if ($table == $table_name) {
-			return true;
-		}
-	}
-	return false;
+	return ( strtolower( $wpdb->get_var( $query ) ) == strtolower( $table_name ) );
 }
 endif;
 
