@@ -38,6 +38,7 @@ class PartitionDefinition extends Component
38
38
public static $ OPTIONS = array (
39
39
'STORAGE ' => array (1 , 'var ' ),
40
40
'STORAGE ENGINE ' => array (1 , 'var ' ),
41
+ 'ENGINE ' => array (1 , 'var ' ),
41
42
'COMMENT ' => array (2 , 'var ' ),
42
43
'DATA DIRECTORY ' => array (3 , 'var ' ),
43
44
'INDEX DIRECTORY ' => array (4 , 'var ' ),
@@ -201,13 +202,13 @@ public static function build($component, array $options = array())
201
202
return "( \n" . implode (", \n" , $ component ) . "\n) " ;
202
203
} else {
203
204
if ($ component ->isSubpartition ) {
204
- return 'SUBPARTITION ' . $ component ->name ;
205
+ return 'SUBPARTITION ' . $ component ->name . ' ' . $ component -> options ;
205
206
} else {
206
207
$ subpartitions = empty ($ component ->subpartitions )
207
208
? '' : ' ' . PartitionDefinition::build ($ component ->subpartitions );
208
209
return 'PARTITION ' . $ component ->name
209
210
. ' VALUES ' . $ component ->type . ' ' . $ component ->expr
210
- . $ subpartitions ;
211
+ . $ component -> options . $ subpartitions ;
211
212
}
212
213
}
213
214
}
0 commit comments