Index: class.ux_t3lib_sqlparser.php =================================================================== --- class.ux_t3lib_sqlparser.php (revision 33591) +++ class.ux_t3lib_sqlparser.php (working copy) @@ -301,6 +301,7 @@ case 'ADDUNIQUE': $query .= ' (' . implode(',', $components['fields']) . ')'; break; + case 'DEFAULTCHARACTERSET': case 'ENGINE': // ??? todo! break; Index: tests/sqlparser_general_testcase.php =================================================================== --- tests/sqlparser_general_testcase.php (revision 33591) +++ tests/sqlparser_general_testcase.php (working copy) @@ -352,6 +352,21 @@ $this->assertEquals($expected, $alterTable[0]); } + /** + * @test + * @see http://bugs.typo3.org/view.php?id=14496 + */ + public function canParseAlterCharacterSetStatement() { + $parseString = 'ALTER TABLE `index_phash` DEFAULT CHARACTER SET utf8'; + $components = $this->fixture->_callRef('parseALTERTABLE', $parseString); + + $this->assertTrue(is_array($components), $components); + $alterTable = $this->cleanSql($this->fixture->_callRef('compileALTERTABLE', $components)); + $expected = 'ALTER TABLE index_phash DEFAULT CHARACTER SET utf8'; + $this->assertTrue(is_array($alterTable), $alterTable); + $this->assertEquals($expected, $alterTable[0]); + } + /////////////////////////////////////// // Tests concerning JOINs ///////////////////////////////////////