Skip to content

Commit 1a17488

Browse files
committed
Add builder's test for #92
Signed-off-by: Deven Bansod <[email protected]>
1 parent 6601ee5 commit 1a17488

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Builder/CreateStatementTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,17 @@ public function testBuilderTable()
127127
$parser = new Parser($query);
128128
$this->assertEquals($query, $parser->statements[0]->build());
129129

130+
131+
/* Assertion 4 */
132+
$query =
133+
"CREATE TABLE `aa` (\n" .
134+
" `id` int(11) NOT NULL,\n" .
135+
" `rTime` timestamp(3) NOT NULL DEFAULT '0000-00-00 00:00:00.000' ON UPDATE CURRENT_TIMESTAMP(3),\n" .
136+
" PRIMARY KEY (`id`)\n" .
137+
") ENGINE=InnoDB DEFAULT CHARSET=latin1";
138+
$parser = new Parser($query);
139+
$this->assertEquals($query, $parser->statements[0]->build());
140+
130141
}
131142

132143
public function testBuilderPartitions()

0 commit comments

Comments
 (0)