Oh, sorry. I copied wrong code from row.h. It should be:
const std::string & raw_string ( int i ) const {
return data.at(i);
}
On 8/4/05, Pål Brattberg <pal@stripped> wrote:
> Yingbo Miao wrote:
> > I wonder whether it is a good way to return the "raw string" directly
> from the class ROW. For example, one line line can be added to the row.h
>
> How about the following, already present i row.h?
>
> // Return the value of a field given its index, in raw form.
> const char* raw_data(int i) const
> {
> return data_[i].data();
> }
>
> What are you missing in this?
>
> / pål
>
>
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=1
>
>