From: <ch...@us...> - 2012-04-30 16:54:27
|
Revision: 41212 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=41212&view=rev Author: chealer Date: 2012-04-30 16:54:21 +0000 (Mon, 30 Apr 2012) Log Message: ----------- [FIX] Quote database name. May need escaping too for trickier names Modified Paths: -------------- branches/9.x/installer/schema/20120429_fix_collation_tiki.php Modified: branches/9.x/installer/schema/20120429_fix_collation_tiki.php =================================================================== --- branches/9.x/installer/schema/20120429_fix_collation_tiki.php 2012-04-30 16:52:04 UTC (rev 41211) +++ branches/9.x/installer/schema/20120429_fix_collation_tiki.php 2012-04-30 16:54:21 UTC (rev 41212) @@ -13,7 +13,7 @@ function upgrade_20120429_fix_collation_tiki($installer) { global $dbs_tiki; - $installer->query("ALTER DATABASE ".$dbs_tiki." CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'"); + $installer->query("ALTER DATABASE '" . $dbs_tiki . "' CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'"); if ( $results= $installer->fetchAll('SELECT DISTINCT(TABLE_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = ?', $dbs_tiki) ) { foreach ( $results as $table ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |