List:General Discussion« Previous MessageNext Message »
From:Bernhard Döbler Date:February 26 2003 8:59am
Subject:Fw: Simple C API question
View as plain text  
Why is the standard-receiver of a reply to the list, the original poster, not the list
itself?

----- Original Message ----- 
From: "Bernhard Döbler" <programmer@stripped>
To: <tmcleskey@stripped>
Sent: Wednesday, February 26, 2003 9:58 AM
Subject: Re: Simple C API question


Hi Travis,

so far I see, you cannot simply interpret 'length' as the length in bytes of the
corresponding "byte string" in the MYSQL_ROW.
Think of the Type VARCHAR.
The length member of the FIELD tells you the maximum, the row gives you the string in the
actual length.
So far I know the Strings in the ROW are zero-terminated so you can use it with ease and
the regular C-character-functions.

http://www.mysql.com/doc/en/mysql_fetch_row.html

Regards
Bernhard

----- Original Message ----- 
From: "Travis McLeskey" <tmcleskey@stripped>
To: <mysql@stripped>
Sent: Tuesday, February 25, 2003 10:04 PM
Subject: Simple C API question


> 
> Question: Can I reliably interpret 'length' as the length in bytes of the
> corresponding "byte string" in the MYSQL_ROW, and is there a usual way to
> extract these data into regular C datatypes?
>
Thread
Fw: Simple C API questionBernhard Döbler26 Feb