Search Postgresql Archives

Re: difference between implicit/explicit cast of integer to interval

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

 



raf <raf@xxxxxxx> writes:
> Q1) if an integer cannot be explicitly cast into an interval, what is happening
> when a date difference is stored in an interval variable to allow it to happen?

plpgsql is really lax about type coercions.  It typically does them by
converting the source value to text and then converting that string to
the target type.  If we were designing that language today, I doubt
we'd have accepted such a definition, but changing it now would break
a lot of code ...

			regards, tom lane

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


[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