pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14300: Empty cube representation
2+ messages / 2 participants
[nested] [flat]

* BUG #14300: Empty cube representation
@ 2016-08-29 14:09  a@ustimen.co
  0 siblings, 1 reply; 2+ messages in thread

From: a@ustimen.co @ 2016-08-29 14:09 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14300
Logged by:          Alexander Ustimenko
Email address:      a@ustimen.co
PostgreSQL version: 9.5.4
Operating system:   Debian 4.9.2-10 64-bit
Description:        

ACTUAL:

SELECT CUBE(ARRAY[]::INTEGER[]);
-- Gives '()'

SELECT '()'::CUBE;
-- Gives 'ERROR:  bad cube representation'

SHOULD BE?:

SELECT CUBE(ARRAY[]::INTEGER[]);
-- Should give some 'ERROR:  bad cube representation' ?

QUESTION:

Does cube type wrong or cube parser wrong?


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14300: Empty cube representation
@ 2016-08-29 16:24  Tom Lane <tgl@sss.pgh.pa.us>
  parent: a@ustimen.co
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-08-29 16:24 UTC (permalink / raw)
  To: a@ustimen.co; +Cc: pgsql-bugs

a@ustimen.co writes:
> SELECT CUBE(ARRAY[]::INTEGER[]);
> -- Gives '()'
> SELECT '()'::CUBE;
> -- Gives 'ERROR:  bad cube representation'

Hmm.  There are more ways than that to produce a cube that cube_in won't
take: you can put in an infinity or NaN coordinate via the cube-from-
float-array path too, and cube_out will print them, but cube_in won't
take them.  We fixed something similar with the core geometric types
recently.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-08-29 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29 14:09 BUG #14300: Empty cube representation a@ustimen.co
2016-08-29 16:24 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox