From: <al...@us...> - 2008-08-26 19:37:58
|
Revision: 644 http://sciret.svn.sourceforge.net/sciret/?rev=644&view=rev Author: alpeb Date: 2008-08-26 19:37:56 +0000 (Tue, 26 Aug 2008) Log Message: ----------- sometimes CREATE TABLE won't work through Zend_Db, so I'm issuing a direct call Modified Paths: -------------- trunk/actions/Install.php Modified: trunk/actions/Install.php =================================================================== --- trunk/actions/Install.php 2008-08-26 18:40:30 UTC (rev 643) +++ trunk/actions/Install.php 2008-08-26 19:37:56 UTC (rev 644) @@ -60,7 +60,7 @@ // it looks like the following call attempts to create the DB $this->db = Zend_Db::factory($this->config->database); $this->db->getConnection(); - $stmt = $this->db->query("CREATE DATABASE `".$_POST['database']."`"); + $stmt = $this->db->getConnection()->query("CREATE DATABASE `".$_POST['database']."`"); } catch (Zend_Db_Adapter_Exception $e) { $errors[] = $this->user->lang('Couldn\'t create database. Please create it manually and try again.'); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |