× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
rkshakya reported 2013-10-27T11:45:13Z  · JennyNishimura last modified 2013-11-15T00:20:49Z

Incorrect updation done by $min operator on date data on ADS mongoshell

  Duplicates #10601
Dev
Jenny Nishimura
JennyNishimura
QA
Tariq Rahiman
tariqrahiman
Priority Low
Complexity Unknown
Component MongoShell
Version 15.0

ADS : 14.0.1
Platform : Ubuntu 12.04 64 bit
MongoDB : 2.5.3

This is with reference to the new behavior of $min operator on mongodb 2.5.3 as described here.

Steps to reproduce issue:
1) Create a new collection with a single doc using following query:
db.iota.insert({age : 2, manudate : new Date("2013-09-25"), expdate : new Date("2014-09-25")})

2) Now run the following query :
db.iota.update({age : 2}, {$min : {expdate : new Date("2013-10-21")}})

Expected behavior:
3) The expdate value on collection 'iota' should have been updated to "2013-10-21" as it is lesser/earlier than "2014-09-25".

Actual behavior:
4) The expdate values is updated to "1970-01-01". (Pls refer to attached ads_mongoshell.png)

1 attachment

Issue #10602

Closed
Duplicate
Resolved 2013-11-15T00:20:49Z
 
 
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