File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ class CreateDefinition extends Component
88
88
'INVISIBLE ' => 13 ,
89
89
'ENFORCED ' => 14 ,
90
90
'NOT ' => 15 ,
91
+ 'COMPRESSED ' => 16 ,
91
92
// Common entries.
92
93
//
93
94
// NOTE: Some of the common options are not in the same order which
Original file line number Diff line number Diff line change @@ -142,4 +142,13 @@ public function testBuildWithInvisibleKeyword()
142
142
CreateDefinition::build ($ parser ->statements [0 ]->fields [0 ])
143
143
);
144
144
}
145
+
146
+ public function testBuildWithCompressed (): void
147
+ {
148
+
149
+ $ query = 'CREATE TABLE `user` ( `message2` TEXT COMPRESSED ) ' ;
150
+ $ parser = new Parser ($ query );
151
+ $ stmt = $ parser ->statements [0 ];
152
+ $ this ->assertEquals ("CREATE TABLE `user` ( \n `message2` text COMPRESSED \n) " ,$ stmt ->build ());
153
+ }
145
154
}
You can’t perform that action at this time.
0 commit comments