Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/PHPCR/Util/QOM/Sql2ToQomQueryConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,13 @@ protected function parseLiteral()
throw new \Exception("Syntax error: unterminated quoted string $token in '{$this->sql2}'");
}

$token = substr($token, 1, -1);
$token = substr($token, 1, -1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is an indention change on this line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in d1edda0

} else if (is_numeric($token)){
$token = strpos($token, '.') === false ? (int) $token : (float) $token;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to http://php.net/manual/de/function.is-numeric.php php does not accept , as separator even when the locale is different than english. so this seems correct.

} else if ($token == 'true') {
$token = true;
} else if ($token == 'false') {
$token = false;
}

return $this->factory->literal($token);
Expand Down