File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,14 @@ class CreateStatement extends Statement
211211 21 ,
212212 'var ' ,
213213 ],
214+ 'PAGE_COMPRESSED ' => [
215+ 22 ,
216+ 'var ' ,
217+ ],
218+ 'PAGE_COMPRESSION_LEVEL ' => [
219+ 23 ,
220+ 'var ' ,
221+ ],
214222 ];
215223
216224 /**
Original file line number Diff line number Diff line change @@ -20,4 +20,12 @@ public function testBuilder(): void
2020
2121 $ this ->assertEquals ($ query , $ stmt ->build ());
2222 }
23+
24+ public function testBuilderCompressed (): void
25+ {
26+ $ query = 'ALTER TABLE `user` CHANGE `message` `message` TEXT COMPRESSED ' ;
27+ $ parser = new Parser ($ query );
28+ $ stmt = $ parser ->statements [0 ];
29+ $ this ->assertEquals ($ query , $ stmt ->build ());
30+ }
2331}
Original file line number Diff line number Diff line change @@ -70,6 +70,16 @@ public function testBuilderDefaultInt(): void
7070 );
7171 }
7272
73+ public function testBuilderCompressd (): void
74+ {
75+ $ parser = new Parser ('CREATE TABLE users ( user_id int ) PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9; ' );
76+ $ stmt = $ parser ->statements [0 ];
77+ $ this ->assertEquals (
78+ "CREATE TABLE users ( \n `user_id` int \n) PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9 " ,
79+ $ stmt ->build ()
80+ );
81+ }
82+
7383 public function testBuilderCollate (): void
7484 {
7585 $ parser = new Parser (
You can’t perform that action at this time.
0 commit comments