IntelLabs / vdms

VDMS: Your Favorite Visual Data Management System
MIT License
84 stars 31 forks source link

For queries with no results VDMS returns an error #59

Closed mwahle closed 5 years ago

mwahle commented 5 years ago

Instead of an error VDMS should return an empty result set:

db.query([{'AddEntity': {'class': 'Test2', 'properties': {'x': 1}}}])
Out[6]: ([{'AddEntity': {'info': '', 'status': 0}}], [])

db.query([{"FindEntity": {'class': 'Test2', 'constraints': {'x': ['==', 2]}}}])
Out[7]: 
([{'FailedCommand': 'Transaction',
   'info': 'Failed PMGDTransaction',
   'status': -1}],
[])
crstrong commented 5 years ago

I believe this is the same as #36

vishakha041 commented 5 years ago

Fixed in 45f651f