mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
resolved conflicts
This commit is contained in:
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\SqlParser\Tests\Components;
|
||||
|
||||
use PhpMyAdmin\SqlParser\Components\PartitionDefinition;
|
||||
use PhpMyAdmin\SqlParser\Parser;
|
||||
use PhpMyAdmin\SqlParser\Tests\TestCase;
|
||||
|
||||
class PartitionDefinitionTest extends TestCase
|
||||
{
|
||||
public function testParse(): void
|
||||
{
|
||||
$component = PartitionDefinition::parse(
|
||||
new Parser(),
|
||||
$this->getTokensList('PARTITION p0 VALUES LESS THAN(1990)')
|
||||
);
|
||||
$this->assertFalse($component->isSubpartition);
|
||||
$this->assertEquals('p0', $component->name);
|
||||
$this->assertEquals('LESS THAN', $component->type);
|
||||
$this->assertEquals('(1990)', $component->expr->expr);
|
||||
}
|
||||
|
||||
public function testParseNameWithUnderscore(): void
|
||||
{
|
||||
$component = PartitionDefinition::parse(
|
||||
new Parser(),
|
||||
$this->getTokensList('PARTITION 2017_12 VALUES LESS THAN (\'2018-01-01 00:00:00\') ENGINE = MyISAM')
|
||||
);
|
||||
$this->assertFalse($component->isSubpartition);
|
||||
$this->assertEquals('2017_12', $component->name);
|
||||
$this->assertEquals('LESS THAN', $component->type);
|
||||
$this->assertEquals('(\'2018-01-01 00:00:00\')', $component->expr->expr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user