Re: why not type casting by default in prepared statements?
В списке pgsql-jdbc по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: why not type casting by default in prepared statements? |
| Дата | |
| Msg-id | 18505.1037463614@sss.pgh.pa.us обсуждение |
| Ответ на | why not type casting by default in prepared statements? (Harald Krake <harald@krake.de>) |
| Ответы |
Re: why not type casting by default in prepared statements?
|
| Список | pgsql-jdbc |
Harald Krake <harald@krake.de> writes:
> But now I'm wondering whether there are any good reasons
> not to type cast by default?
This has been suggested, and rejected, repeatedly. It's not a good
idea to apply a driver-side band-aid to mask a server-side problem;
especially not when the driver does not have adequate information to
fix the problem properly. (In other words, any driver-side solution
will fix some queries and break others.)
There will be a real solution in the backend someday soon, perhaps 7.4.
regards, tom lane
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера