From: Warren Young Date: March 19 2009 5:33pm Subject: Re: checking NULL List-Archive: http://lists.mysql.com/plusplus/8484 Message-Id: <2005A69E-B82C-4E66-B305-753D62B827DE@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mar 19, 2009, at 6:47 AM, Jithin Emmanuel wrote: > if(nullField == row["name"]) { if (row["name"] == mysqlpp::null) It looks like you're one of those with the habit of reversing the order of your equality test terms to avoid errors with "=" vs "==". I'm not sure you can get away with that with mysqlpp::null.