Re: type unknown - how important is it?

From: Shachar Shemesh <psql(at)shemesh(dot)biz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pg(at)fastcrypt(dot)com, pgsql-hackers(at)postgresql(dot)org, Postgresql OLE DB development <oledb-dev(at)gborg(dot)postgresql(dot)org>
Subject: Re: type unknown - how important is it?
Date: 2005-03-17 15:29:18
Message-ID: 4239A24E.2050107@shemesh.biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

>Dave Cramer <pg(at)fastcrypt(dot)com> writes:
>
>
>>Shachar Shemesh wrote:
>>
>>
>>>I don't know type 705 well enough to decide which would work best. If
>>>it's guaranteed to be a validly encoded text string, then I'll just
>>>put it in as DBTYPE_WSTR, and get it done with.
>>>
>>>
>
>
>
>>I think it's safe to assume it will be encoded properly.
>>
>>
>
>AFAICS it will work exactly like 'text'.
>
> regards, tom lane
>
>
I have some doubts. From "textin":

> /* verify encoding */
> len = strlen(inputText);
> pg_verifymbstr(inputText, len, false);

"unknownin" has no such thing. I'm worried. I realize that unknownout
and textout are precisely the same, but I can't say I understand completely.

Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Shachar Shemesh 2005-03-17 15:31:36 Re: type unknown - how important is it?
Previous Message Tom Lane 2005-03-17 15:20:03 Re: type unknown - how important is it?