List:MySQL++« Previous MessageNext Message »
From:Andrej van der Zee Date:April 30 2010 5:21am
Subject:create a Null field
View as plain text  
Hi,

I was wondering if there is an easier way to create a nullable data field value. I am
doing it like this, but it seems a bit clumsy:

   mysqlpp::Null<mysqlpp::sql_int_unsigned> db_host_id(0);
    if (h)
      db_host_id.data = h->_db_host_id;
    else
      db_host_id.is_null = true;

Thank you,
Andrej


      

Thread
create a Null fieldAndrej van der Zee30 Apr
  • Re: create a Null fieldWarren Young30 Apr
    • Re: create a Null fieldAndrej van der Zee30 Apr
      • Re: create a Null fieldWarren Young30 Apr