> You're right, as usual (I was tired when I wrote this last night ;). But I
> think we have to escape/unescape both null and '\', don't we?
Yes, I think backslashes need special escapes too.
Let me ask a bigger question. We have the length of the text string in
the varlena header. Are we concerned about backend code not handling
NULL in text fields, or frontend code returning strings with embedded
I see problems in the text() functions for nulls, but is such a
limitation required for text types?
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
In response to
pgsql-hackers by date
|Next:||From: Rene Pijlman||Date: 2001-09-04 17:03:41|
|Subject: Re: [JDBC] Troubles using German Umlauts with JDBC|
|Previous:||From: Ryan||Date: 2001-09-04 16:32:58|
|Subject: Re: Toast, Text, blob bytea Huh?|
pgsql-patches by date
|Next:||From: Larry Rosenman||Date: 2001-09-04 17:13:00|
|Subject: Re: Bytea/Base64 encoders for libpq - interested?|
|Previous:||From: Bruce Momjian||Date: 2001-09-04 16:35:40|
|Subject: Re: Patch for pl/tcl Tcl_ExternalToUtf and Tcl_UtfToExternal|