Fixed bug #17327: Alter table in install tool does not work
authorXavier Perseguers <typo3@perseguers.ch>
Wed, 26 Jan 2011 13:23:56 +0000 (13:23 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Wed, 26 Jan 2011 13:23:56 +0000 (13:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@42650 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/ChangeLog
typo3/sysext/dbal/class.ux_t3lib_db.php

index 9c581d7..078d824 100644 (file)
@@ -1,5 +1,6 @@
 2011-01-26  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Fixed bug #17327: Alter table in install tool does not work
        * Fixed unit tests
 
 2011-01-25  Xavier Perseguers  <typo3@perseguers.ch>
index 8fd242d..b6f9d7a 100644 (file)
@@ -2931,10 +2931,10 @@ class ux_t3lib_DB extends t3lib_DB {
                                        // Compiling query:
                                        $compiledQuery = $this->SQLparser->compileSQL($this->lastParsedAndMappedQueryArray);
 
-                                       //if ($this->lastParsedAndMappedQueryArray['type'] == 'INSERT') {
-                                       //      return mysql_query($compiledQuery, $this->link);
-                                       //}
-                                       return mysql_query($compiledQuery, $this->link);
+                                       if ($this->lastParsedAndMappedQueryArray['type'] == 'INSERT') {
+                                               return mysql_query($compiledQuery, $this->link);
+                                       }
+                                       return mysql_query(is_array($compiledQuery) ? $compiledQuery[0] : $compiledQuery, $this->link);
                                        break;
                                case 'adodb':
                                        // Compiling query: