| От | Tom Lane |
|---|---|
| Тема | Re: Explicit typing of numeric types |
| Дата | |
| Msg-id | 24847.1011108980@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Explicit typing of numeric types ("Alaric B. Snell" <abs@frontwire.com>) |
| Список | pgsql-jdbc |
"Alaric B. Snell" <abs@frontwire.com> writes:
> After a painful experience with int8 indices not being used for:
> SELECT * FROM foo WHERE id = 1;
> ...since 1 is an int4 not an int8, I'm wondering if there would be
> anything wrong with making the JDBC driver always put out explicit type
> declarations?
(a) How would JDBC know what to do better than the backend does?
What happens when (not if) JDBC puts out an inappropriate coercion?
(b) This is an acknowledged shortcoming that will be fixed someday.
I don't think it's appropriate to try to put temporary band-aids for
backend shortcomings in frontend drivers. Surely the folks working on
JDBC have their own set of shortcomings to work on...
regards, tom lane
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера