1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Merge branch 'DDC-1108'

This commit is contained in:
Benjamin Eberlei 2011-04-30 12:27:35 +02:00
commit b462cfbe2b
2 changed files with 9 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class Lexer extends \Doctrine\Common\Lexer
'[a-z_\\\][a-z0-9_\:\\\]*[a-z0-9_]{1}', '[a-z_\\\][a-z0-9_\:\\\]*[a-z0-9_]{1}',
'(?:[0-9]+(?:[\.][0-9]+)*)(?:e[+-]?[0-9]+)?', '(?:[0-9]+(?:[\.][0-9]+)*)(?:e[+-]?[0-9]+)?',
"'(?:[^']|'')*'", "'(?:[^']|'')*'",
'\?[1-9][0-9]*|:[a-z][a-z0-9_]+' '\?[1-9][0-9]*|:[a-z]{1}[a-z0-9_]{0,}'
); );
} }

View File

@ -513,6 +513,14 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
$this->assertInvalidDQL('SELECT g FROM Doctrine\Tests\Models\CMS\CmsUser u JOIN u.groups g'); $this->assertInvalidDQL('SELECT g FROM Doctrine\Tests\Models\CMS\CmsUser u JOIN u.groups g');
} }
/**
* @group DDC-1108
*/
public function testInputParameterSingleChar()
{
$this->assertValidDQL('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.name = :q');
}
/** /**
* @group DDC-1053 * @group DDC-1053
*/ */