Bug #22695 » 14456_dbal.diff
class.ux_t3lib_sqlparser.php (working copy) | ||
---|---|---|
case 'ADDUNIQUE':
|
||
$query .= ' (' . implode(',', $components['fields']) . ')';
|
||
break;
|
||
case 'ENGINE':
|
||
// ??? todo!
|
||
break;
|
||
}
|
||
break;
|
||
}
|
tests/sqlparser_general_testcase.php (working copy) | ||
---|---|---|
$this->assertEquals($expected, $select);
|
||
}
|
||
/**
|
||
* @test
|
||
* @see http://bugs.typo3.org/view.php?id=14456
|
||
*/
|
||
public function canParseAlterEngineStatement() {
|
||
$parseString = 'ALTER TABLE tx_realurl_pathcache ENGINE=InnoDB';
|
||
$components = $this->fixture->_callRef('parseALTERTABLE', $parseString);
|
||
$this->assertTrue(is_array($components), $components);
|
||
$alterTable = $this->cleanSql($this->fixture->_callRef('compileALTERTABLE', $components));
|
||
$expected = 'ALTER TABLE tx_realurl_pathcache ENGINE = InnoDB';
|
||
$this->assertTrue(is_array($alterTable), $alterTable);
|
||
$this->assertEquals($expected, $alterTable[0]);
|
||
}
|
||
///////////////////////////////////////
|
||
// Tests concerning JOINs
|
||
///////////////////////////////////////
|
- « Previous
- 1
- 2
- Next »