List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:December 3 2008 12:38pm
Subject:Re: Problem with Null string type
View as plain text  
Brad Hubbard wrote:
>    mysqlpp::Null<mysqlpp::sql_char>, mobileNumber,

...snip...

>                mysqlpp::String &mob = it->mobileNumber;

You mean either:

	mysqlpp::Null<mysqlpp::String> &mob = it->mobileNumber;

or:

	mysqlpp::String &mob = it->mobileNumber.data;

Actually, you don't have to use references if you don't want to. 
mysqlpp::String has reference-counted copies, so they're cheap.

Also, I would use mysqlpp::sql_char here instead of String, just to 
avoid confusion.
Thread
Problem with Null string typeBrad Hubbard3 Dec
  • Re: Problem with Null string typeWarren Young3 Dec
    • Re: Problem with Null string typeBrad Hubbard3 Dec
      • Re: Problem with Null string typeWarren Young3 Dec
        • Re: Problem with Null string typeBrad Hubbard4 Dec
          • Re: Problem with Null string typeBrad Hubbard4 Dec
          • Re: Problem with Null string typeWarren Young4 Dec
            • Re: Problem with Null string typeBrad Hubbard5 Dec
              • Re: Problem with Null string typeWarren Young5 Dec
                • Re: Problem with Null string typeBrad Hubbard6 Dec
Re: Problem with Null string typeWarren Young6 Dec
  • Re: Problem with Null string typeBrad Hubbard6 Dec
    • execute failedbsingh8 Dec
      • Re: execute failedWarren Young8 Dec