tzaeschke / zoodb

ZooDB Object Database
Apache License 2.0
57 stars 9 forks source link

Specifying characters in queries may fail if specified directly #104

Open tzaeschke opened 7 years ago

tzaeschke commented 7 years ago

This is copied from issue #99, originally reported by @slavap

q.setFilter("ch == 'a' || ch == 'z'");

Error is: Exception in thread "main" javax.jdo.JDOUserException: Query parsing error at 'a' near position 7: Incompatible types, found 'String', expected: char. Query= ch == 'a' || ch == 'z'

tzaeschke commented 7 years ago

The query engine is currently undergoing a major refactoring. Th bug will be fixed once the refactoring is done.

tzaeschke commented 7 years ago

I don't think it really counts as bounty-worth, especially as it is labelled as TODO in the code :-), QueryParserV3.java, line 498. But thanks for reporting it.