Skip to content

Commit 99bec8b

Browse files
Merge pull request #1683 from jim-lake/master
engine attributes and data directories
2 parents 9d71240 + 5128081 commit 99bec8b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pegjs/mysql.pegjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,13 +1457,20 @@ table_option
14571457
}
14581458
}
14591459
/ create_option_character_set
1460-
/ kw:(KW_COMMENT / 'CONNECTION'i) __ s:(KW_ASSIGIN_EQUAL)? __ c:literal_string {
1460+
/ kw:(KW_COMMENT / 'CONNECTION'i / 'ENGINE_ATTRIBUTE'i / 'SECONDARY_ENGINE_ATTRIBUTE'i ) __ s:(KW_ASSIGIN_EQUAL)? __ c:literal_string {
14611461
return {
14621462
keyword: kw.toLowerCase(),
14631463
symbol: s,
14641464
value: `'${c.value}'`
14651465
}
14661466
}
1467+
/ type:('DATA'i / 'INDEX'i) __ 'DIRECTORY'i __ s:(KW_ASSIGIN_EQUAL)? __ c:literal_string {
1468+
return {
1469+
keyword: type.toLowerCase() + " directory",
1470+
symbol: s,
1471+
value: `'${c.value}'`
1472+
}
1473+
}
14671474
/ kw:'COMPRESSION'i __ s:(KW_ASSIGIN_EQUAL)? __ v:("'"('ZLIB'i / 'LZ4'i / 'NONE'i)"'") {
14681475
return {
14691476
keyword: kw.toLowerCase(),

0 commit comments

Comments
 (0)