diff --git a/src/Statements/KillStatement.php b/src/Statements/KillStatement.php index 2b3907c7..f8a09132 100644 --- a/src/Statements/KillStatement.php +++ b/src/Statements/KillStatement.php @@ -105,7 +105,7 @@ public function parse(Parser $parser, TokensList $list): void $this->parenthesisUsed = true; $state = 3; } elseif ($prev && $token->value === 'ID' && $prev->value === 'QUERY') { - $this->IDKeywordUsed = true; + $this->idKeywordUsed = true; $state = 0; } else { $parser->error('Unexpected token.', $token); @@ -161,7 +161,7 @@ public function build() $ret .= ' ' . OptionsArray::build($this->options); } - if ($this->IDKeywordUsed) { + if ($this->idKeywordUsed) { $ret .= ' ID'; } diff --git a/tests/data/parser/parseKill.out b/tests/data/parser/parseKill.out index 53758309..77f8ceac 100644 --- a/tests/data/parser/parseKill.out +++ b/tests/data/parser/parseKill.out @@ -62,7 +62,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": 1, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": false, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKill2.out b/tests/data/parser/parseKill2.out index d079cb1e..4dba157c 100644 --- a/tests/data/parser/parseKill2.out +++ b/tests/data/parser/parseKill2.out @@ -168,7 +168,7 @@ "first": 0, "last": 8 }, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": true, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKill3.out b/tests/data/parser/parseKill3.out index 38be2010..3887f586 100644 --- a/tests/data/parser/parseKill3.out +++ b/tests/data/parser/parseKill3.out @@ -98,7 +98,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": 10, - "IDKeywordUsed": true, + "idKeywordUsed": true, "parenthesisUsed": false, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKillConnection.out b/tests/data/parser/parseKillConnection.out index 415c2c7f..027478c0 100644 --- a/tests/data/parser/parseKillConnection.out +++ b/tests/data/parser/parseKillConnection.out @@ -80,7 +80,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": 1, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": false, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKillErr1.out b/tests/data/parser/parseKillErr1.out index ddf1d2a1..bac19500 100644 --- a/tests/data/parser/parseKillErr1.out +++ b/tests/data/parser/parseKillErr1.out @@ -98,7 +98,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": 1, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": false, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKillErr2.out b/tests/data/parser/parseKillErr2.out index 7aeb1ec2..721fd250 100644 --- a/tests/data/parser/parseKillErr2.out +++ b/tests/data/parser/parseKillErr2.out @@ -44,7 +44,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": null, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": false, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKillErr3.out b/tests/data/parser/parseKillErr3.out index fc03ef10..3b0a2395 100644 --- a/tests/data/parser/parseKillErr3.out +++ b/tests/data/parser/parseKillErr3.out @@ -80,7 +80,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": null, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": true, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKillErr4.out b/tests/data/parser/parseKillErr4.out index ba52e332..c5adb58e 100644 --- a/tests/data/parser/parseKillErr4.out +++ b/tests/data/parser/parseKillErr4.out @@ -80,7 +80,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": null, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": true, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray", diff --git a/tests/data/parser/parseKillQuery.out b/tests/data/parser/parseKillQuery.out index 321c5a09..1d2f145c 100644 --- a/tests/data/parser/parseKillQuery.out +++ b/tests/data/parser/parseKillQuery.out @@ -80,7 +80,7 @@ { "@type": "PhpMyAdmin\\SqlParser\\Statements\\KillStatement", "identifier": 1, - "IDKeywordUsed": false, + "idKeywordUsed": false, "parenthesisUsed": false, "options": { "@type": "PhpMyAdmin\\SqlParser\\Components\\OptionsArray",