mysql / mysql-js

NoSQL node.js connector for MySQL Cluster
169 stars 46 forks source link

Query with qdt.key.eq(literal) fails with operation error #33

Closed CraigLRussell closed 7 years ago

CraigLRussell commented 8 years ago

Query with qdt.key.eq(qdt.param('p1') succeeds but qdt.key.eq(literal) fails. The getKeys method does not return literals that are part of the query tree but only returns parameter values.

A new collection of tests based on numerictypes/QueryFindTest should use literals instead of query parameters.

clr-apache commented 8 years ago

This issue is fixed. Two new test cases in numerictypes test this functionality: QueryLiteralFindTest and QueryLiteralIndexScanTest.