From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Shachar Shemesh <psql(at)shemesh(dot)biz> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: type unknown - how important is it? |
Date: | 2004-09-28 19:57:46 |
Message-ID: | 4159C23A.2030604@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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.
Sincerely,
Joshua D. Drake
>
> Shachar
>
Attachment | Content-Type | Size |
---|---|---|
jd.vcf | text/x-vcard | 640 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Shachar Shemesh | 2004-09-28 20:17:01 | Re: type unknown - how important is it? |
Previous Message | Merlin Moncure | 2004-09-28 19:45:47 | Re: shared memory release following failed lock acquirement. |