From: Warren Young Date: December 3 2008 12:38pm Subject: Re: Problem with Null string type List-Archive: http://lists.mysql.com/plusplus/8222 Message-Id: <49367DBF.70905@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Brad Hubbard wrote: > mysqlpp::Null, mobileNumber, ...snip... > mysqlpp::String &mob = it->mobileNumber; You mean either: mysqlpp::Null &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.