Fixed bug #17399: Install Tool COMPARE fails to update mysql tables
authorXavier Perseguers <typo3@perseguers.ch>
Mon, 21 Feb 2011 14:21:34 +0000 (14:21 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Mon, 21 Feb 2011 14:21:34 +0000 (14:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@43947 735d13b6-9817-0410-8766-e36946ffe9aa

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

index 5f51aa9..820794e 100644 (file)
@@ -1,5 +1,6 @@
 2011-02-21  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Fixed bug #17399: Install Tool "COMPARE" fails to update mysql tables 
        * Fixed bug #17661: Remove deprecated methods from t3lib_div
        * Fixed bug #17670: Remove deprecated functions scheduled for removal in 4.6
 
index 2a6e083..24148b6 100644 (file)
@@ -2902,10 +2902,10 @@ class ux_t3lib_DB extends t3lib_DB {
                                        // Compiling query:
                                        $compiledQuery = $this->SQLparser->compileSQL($this->lastParsedAndMappedQueryArray);
 
-                                       if ($this->lastParsedAndMappedQueryArray['type'] == 'INSERT') {
+                                       if (in_array($this->lastParsedAndMappedQueryArray['type'], array('INSERT', 'DROPTABLE'))) {
                                                return mysql_query($compiledQuery, $this->link);
                                        }
-                                       return mysql_query(is_array($compiledQuery) ? $compiledQuery[0] : $compiledQuery, $this->link);
+                                       return mysql_query($compiledQuery[0], $this->link);
                                        break;
                                case 'adodb':
                                        // Compiling query: