[BUGFIX] Extension Import not working with postgresql and DBAL
authorErnesto Baschny <ernst@cron-it.de>
Wed, 18 Jul 2012 19:15:06 +0000 (21:15 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 17 Oct 2012 20:23:13 +0000 (22:23 +0200)
Change-Id: I496e3729b3c98c85a07e75539de9464f272837e6
Fixes: #38406
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/15776
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/em/classes/database/class.tx_em_database.php

index 7d1fdd5..889e5e3 100644 (file)
@@ -220,7 +220,7 @@ final class tx_em_Database {
         */
        public function insertLastVersion($repositoryUid = 1) {
                $groupedRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
-                       'extkey, version, max(intversion) maxintversion',
+                       'extkey, max(intversion) as maxintversion',
                        'cache_extensions',
                        'repository=' . intval($repositoryUid),
                        'extkey'