From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Scott Muir" <wsmuir(at)islandnet(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: SPI - couple things (7.0.2) |
Date: | 2001-02-23 22:12:34 |
Message-ID: | 850.982966354@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
"Scott Muir" <wsmuir(at)islandnet(dot)com> writes:
> Last night, I attempted to access the data of several TEXT parameters into a
> 'language 'C'' function I've created and got an interesting result... on of
> the strings gets a little garbled on the end... I haven't attempted to
> debug it yet (isoloate the behaviour; gave up; went home) but I"m wondering
> if it can be assumed that the (char *) part of the TEXT struct (VARDATA) has
> been terminated at the length specified by the (VARLEN())?? part.
TEXT data is guaranteed *not* to be null terminated. If you are
writing code that expects it to be, you will have lots of problems.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 2001-02-23 22:14:41 | Re: SPI - couple things (7.0.2) |
Previous Message | Wasem Peter | 2001-02-23 21:26:48 | ODBC examples for UNIX (Linux) |