List:MySQL++« Previous MessageNext Message »
From:Pål Brattberg Date:August 4 2005 1:07pm
Subject:Re: Return string directly from the class ROW
View as plain text  
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


Thread
Return string directly from the class ROWYingbo Miao4 Aug
  • Re: Return string directly from the class ROWPål Brattberg4 Aug
    • Re: Return string directly from the class ROWYingbo Miao4 Aug
      • Re: Return string directly from the class ROWYingbo Miao4 Aug
  • Re: Return string directly from the class ROWWarren Young12 Jan