Re: type unknown - how important is it?
От
Shachar Shemesh
Тема
Re: type unknown - how important is it?
Дата
Msg-id
4159C6BD.5060906@shemesh.biz
Ответ на
Re: type unknown - how important is it? (Joshua D. Drake)
Список
Дерево обсуждения
type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Re: type unknown - how important is it? "Joshua D. Drake" <jd@commandprompt.com>
Re: type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Re: type unknown - how important is it? Dave Cramer <pg@fastcrypt.com>
Re: type unknown - how important is it? Tom Lane <tgl@sss.pgh.pa.us>
Re: type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Re: type unknown - how important is it? Dave Cramer <pg@fastcrypt.com>
Re: type unknown - how important is it? Russell Smith <mr-russ@pws.com.au>
Re: type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Re: type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Re: type unknown - how important is it? Dave Cramer <pg@fastcrypt.com>
Re: type unknown - how important is it? Tom Lane <tgl@sss.pgh.pa.us>
Re: type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Re: type unknown - how important is it? Shachar Shemesh <psql@shemesh.biz>
Joshua D. Drake wrote:
> Shachar Shemesh wrote:
>
>> I have a complaint from an OLE DB user that when he does "select
>> 'a'", he gets an "unhanded type" error. Since OLE DB uses a binary
>> interface, it has to know about all variable types that pass through it.
>>
>> The debug information for the problem show that the returned type is
>> 705, which is "unknown". My question is - what is "unknown" used for?
>> Is it important to support binary send and receives with this type?
>> Does postgresql know how to convert it to other types?
>>
>> I was under the impression that 'a' would be "text". Why is "unknown"
>> used instead?
>
>
> Try casting a to varchar. Which is binary compatible but understood by
> ODBC/OLE DB.
Hmm, I did not explain myself clearly enough.
I maintain the OLE DB provider. My question was not that. My question
was whether I should add support to unknown? If so, what type should it
be represented to outside applications?
If unknown is binary compatible to text, I can just pass it on as text
and have it done with. The question is whether that makes sense, whether
it makes more sense to pull and error if that happens, or whether there
is something else which I should do.
Thanks,
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/
В списке pgsql-hackers по дате отправления