Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type
От | Eduardo Pérez Ureta |
---|---|
Тема | Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type |
Дата | |
Msg-id | CAM7oS3H9gU0Gqvz9B9p6h22i8363z=Pv3bdDj74g7-9wmEw8tQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type
Re: [BUGS] BUG #14853: Parameter type is required even when the querydoes not need to know the type |
Список | pgsql-bugs |
My example is even better!
There is no need to infer the type as it is not needed!
PostgreSQL should be able to infer that no type is needed.
On Oct 15, 2017 8:23 PM, "David G. Johnston" <david.g.johnston@gmail.com> wrote:
On Sunday, October 15, 2017, Eduardo Pérez Ureta <edpeur@gmail.com> wrote:I understand that not sending the type for a parameter (when it is not null) may not make much sense.
But, currently PostgreSQL accepts parameters with unknown types in statements like:
INSERT INTO t1 (col1) VALUES (?)
SELECT * FROM t1 WHERE col1 = ?where the column can be different types like VARCHAR or TIMESTAMPcol1 has a type and so the type of the unspecified variable can be inferred. Your is null example cannot have its typed inferred.David J.
В списке pgsql-bugs по дате отправления: