Project

General

Profile

Bug #21730 » 12829_dbal.diff

Administrator Admin, 2010-02-14 18:29

View differences:

tests/sqlparser_general_testcase.php (working copy)
* @test
* @see http://bugs.typo3.org/view.php?id=4466
*/
public function indexMayContainALengthRestriction() {
public function indexMayContainALengthRestrictionInCreateTable() {
$parseString = '
CREATE TABLE tx_realurl_uniqalias (
uid int(11) NOT NULL auto_increment,
......
$this->assertTrue(is_array($createTables), $createTables);
}
/**
* @test
* @see http://bugs.typo3.org/view.php?id=12829
*/
public function indexMayContainALengthRestrictionInAlterTable() {
$parseString = 'ALTER TABLE tx_realurl_uniqalias ADD KEY bk_realurl02 (tablename,field_alias,field_id,value_alias(220),expire)';
$alterTables = $this->fixture->_callRef('parseALTERTABLE', $parseString);
$this->assertTrue(is_array($alterTables), $alterTables);
}
///////////////////////////////////////
// Tests concerning subqueries
///////////////////////////////////////
(2-2/2)