We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a3579 commit 32e10adCopy full SHA for 32e10ad
tests/Builder/CreateStatementTest.php
@@ -70,6 +70,17 @@ public function testBuilderDefaultInt(): void
70
);
71
}
72
73
+ public function testBuilderWithComments(): void
74
+ {
75
+ $parser = new Parser('CREATE TABLE tab1 (`col1` TIMESTAMP /*!40100 DEFAULT NULL */)');
76
+ $stmt = $parser->statements[0];
77
+ $this->assertEquals(
78
+ // TODO: fix with https://github.com/phpmyadmin/sql-parser/issues/256
79
+ "CREATE TABLE tab1 (\n `col1` timestamp DEFAULT NULL\n) ",
80
+ $stmt->build()
81
+ );
82
+ }
83
+
84
public function testBuilderCompressed(): void
85
{
86
$parser = new Parser('CREATE TABLE users ( user_id int ) PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9;');
0 commit comments