| От | Andrew McNamara |
|---|---|
| Тема | Re: Confusion over Python drivers |
| Дата | |
| Msg-id | 20100213010743.16C5B206F7@longblack.object-craft.com.au обсуждение исходный текст |
| Ответ на | Re: Confusion over Python drivers (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
>Andrew McNamara <andrewm@object-craft.com.au> writes: >>>> The solution is to write the query in an unambiguous way: >>>> SELECT $1::date + 1; > >> You are missing the point: this is not about what types the SQL execution >> sees. It is about making sure the correct recv function is applied to >> the binary parameter data. > >Indeed, and the above locution does set that. Sure, but it requires the driver to modify the query - that isn't reasonable or practical. Expecting the user to the driver to know and correct set the type the driver will ultimately see is a recipe for disaster. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера