× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
slavakiev reported 2013-06-07T13:33:10Z  · last modified 2013-06-25T20:08:09Z

Exception com.mongodb.MongoException$DuplicateKey


Priority Low
Complexity Unknown
Component MongoSQL
Version 14.0
Tested on Aqua Data Studio 14.0.0-beta-14 Build #: 32768 on Ubuntu 12.04( Mongo DB 2.4.3)  and Windows XP ( Mongo DB 2.0.9).
 
Next SQL gives  exception "com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/127.0.0.1:27017" , "err" : "E11000 duplicate key error index: Test_Case.tmp_from_subquery.$_id_  dup key: { : ObjectId('51b1c259ecde088596e01dd7') }" , "code" : 11000 , "n" : 0 , "connectionId" : 11 , "ok" : 1.0} "
 
select * from (
select _id from baseball
union all
select _id from baseball)
go
 
Seems it happens on insert into temporary collection. All works correct when UNION used instead UNION ALL 

Issue #9295

Closed
Fixed
Resolved 2013-06-20T18:51:05Z
 
 
Completion
No due date
Fixed Build ADS 14.0.0-beta-32 (mongo-jdbc 1.2.1)
No time estimate

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