Re: Analysis Function

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

 



Hi,

I added an explicit cast in the SQL:

        dateserial(extract(YEAR FROM m.taken)::int,'||p_month1||','||p_day1||') d1,
        dateserial(extract(YEAR FROM m.taken)::int,'||p_month2||','||p_day2||') d2

The function now takes three integer parameters; there was no performance loss.

Thank you.

Dave


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux