Skip to content

Commit 0e3f944

Browse files
committed
Added support for uppercase query keywords
1 parent 2b1e514 commit 0e3f944

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PHPCR/Shell/Console/Input/StringInput.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ public function __construct($command)
1212
{
1313
$this->rawCommand = trim($command);
1414

15+
if (strpos(strtolower($this->rawCommand), 'select') === 0) {
16+
$command = 'select' . substr($command, 6);
17+
}
18+
1519
parent::__construct($command);
1620
}
1721

@@ -36,7 +40,7 @@ protected function parse()
3640

3741
protected function isQuery()
3842
{
39-
if (strpos($this->rawCommand, 'select') === 0) {
43+
if (strpos(strtolower($this->rawCommand), 'select') === 0) {
4044
return true;
4145
}
4246

0 commit comments

Comments
 (0)