× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
slavakiev reported 2013-08-20T20:17:27Z  · JennyNishimura last modified 2013-08-20T20:38:14Z

ORDER BY works wrong in UNION if column has MinKey(), MaxKey() values


Dev
Jenny Nishimura
JennyNishimura
QA
Tariq Rahiman
tariqrahiman
Priority Low
Complexity Unknown
Component MongoSQL
Version Future - .9
Tested Aqua Data Studio Aqua Data Studio 14.0.0-beta-85 Build #: 33590 on Ubuntu 12.04( Mongo DB 2.4.3)  and Windows XP ( Mongo DB 2.0.9).
 
ORDER BY works wrong in UNION if column has MinKey(), MaxKey() values:
 
drop collection ordcoll
go
insert into ordcoll(a,b) values(6,'Z')
go
insert into ordcoll(a,b) values(5,null)
go
insert into ordcoll(a,b) values(4,'A')
go
insert into ordcoll(a,b) values(3,MaxKey())
go
insert into ordcoll(a,b) values(2,MinKey())
go
insert into ordcoll(a) values(1)
go
select b from ordcoll
union 
select b from ordcoll 
order by b
go
--wrong order 
--b
---
--(null)
--MaxKey
--MinKey
--(null)
--A
--Z
 

Issue #9809

Closed
 
 
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