Search Postgresql Archives

Casting issue with aggregated function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Casting issue with aggregated function


Hi,

I'm facing a cast issue when using sub queries and I 'd like your opinion if this should be submittede as a Bug.

(Postgres version 8.1.0)



Compare:

A)

select sum(25665800) as c

        => 25665800 (int8)

B)

select sum(c) from
(
select sum(25665800) as c
)foo

        => 25665800 (numeric)


I find the cast form int8 to numeric being strange.




Cheers,

Marc


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux