× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
slavakiev reported 2013-06-01T18:46:52Z  · SachinPrakash last modified 2013-07-18T19:39:03Z

Exception "$where is not allowed inside of $match"


Priority Low
Complexity Unknown
Component MongoSQL
Version Future - .9

Always when operations simultaniosly stand inside WHAT and WHERE clauses  this exception occures. E.g.

SELECT valuation+1 FROM baseball WHERE valuation+1>11

Program should avoid interpret SELECT in way that makes such collision. For example wraps where condition in FROM(SELECT   or temp recordset/temp collection. Bellow  changed SELECT which works:

SELECT valuation +1 FROM (SELECT *  FROM baseball WHERE valuation+1>11)

or more clever ( this needs one more step which excludes operations from WHAT and set it in FROM( SELECT ):  

SELECT valuation+1 FROM (SELECT valuation  FROM baseball WHERE valuation+1>11) 

Issue #9218

Closed
Incomplete
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017