| От | Dmitry Tkach |
|---|---|
| Тема | Re: IN clauses via setObject(Collection) [Was: Re: Prepare |
| Дата | |
| Msg-id | 3F1C4DA5.4040402@openratings.com обсуждение исходный текст |
| Ответ на | Re: IN clauses via setObject(Collection) [Was: Re: Prepare (Darin Ohashi <DOhashi@maplesoft.com>) |
| Список | pgsql-jdbc |
> > >So, yes you should be able to create a set datatype and pass that into the >PreparedStatment (JDBC allows for this using the SQLData interface, I don't know >if postgresql supports it), > I know, that it doesn't > but the data that is representing a set datatype >would not be able to be inserted where SQL set Syntax is expected. > Why the hell not??? > The set >datatype and the SQL set Syntax are completely distinct objects. > > An int datatype and an int syntax are two distinct objects too :-) That's precisely the job of the JDBC driver to convert datatypes I pass in into their representation with the correct syntax that backend would understand. I would have no use of the driver doing anything else - what's the point in passign data in if the syntax it gets converted into isn't understood by the server? Dima
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера