Project

General

Profile

Bug #22061 » 13430_dbal.diff

Administrator Admin, 2010-02-05 22:07

View differences:

tests/sqlparser_general_testcase.php (working copy)
$this->assertEquals($expected, $whereClause);
}
/**
* @test
* http://bugs.typo3.org/view.php?id=13430
*/
public function canParseInsertWithoutSpaceAfterValues() {
$parseString = "INSERT INTO static_country_zones VALUES('483', '0', 'NL', 'NLD', '528', 'DR', 'Drenthe', '');";
$components = $this->fixture->_callRef('parseINSERT', $parseString);
$this->assertTrue(is_array($components), $components);
$insert = $this->cleanSql($this->fixture->compileINSERT($components));
$expected = "INSERT INTO static_country_zones VALUES ('483', '0', 'NL', 'NLD', '528', 'DR', 'Drenthe', '')";
$this->assertEquals($expected, $insert);
}
/**
* @test
* http://bugs.typo3.org/view.php?id=13430
*/
public function canParseInsertWithSpaceAfterValues() {
$parseString = "INSERT INTO static_country_zones VALUES ('483', '0', 'NL', 'NLD', '528', 'DR', 'Drenthe', '');";
$components = $this->fixture->_callRef('parseINSERT', $parseString);
$this->assertTrue(is_array($components), $components);
$insert = $this->cleanSql($this->fixture->compileINSERT($components));
$expected = "INSERT INTO static_country_zones VALUES ('483', '0', 'NL', 'NLD', '528', 'DR', 'Drenthe', '')";
$this->assertEquals($expected, $insert);
}
///////////////////////////////////////
// Tests concerning JOINs
///////////////////////////////////////
(2-2/2)