List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:October 16 2008 9:58pm
Subject:Re: Modifying rows
View as plain text  
Demetris Zavorotnichenko wrote:
> 
> sql_create_14(stock,

Is your table actually called "stock"?

> ===>stock row = res[0]; Error from here "mysqlpp::BadConversion at memory
> location"

One of the values in the result set is not compatible with the data 
types declared in your SSQLS.

> | id           | int(11)      | YES  |     | NULL    |       |

All of these columns are declared as being able to take NULL, but you 
haven't reflected that in your SSQLS.  Unless none of these fields 
actually *do* contain SQL nulls, that could explain the exception.

	mysqlpp::Null<mysqlpp::sql_int>, id

etc.
Thread
Modifying rowsDemetris Zavorotnichenko16 Oct
  • Re: Modifying rowsWarren Young16 Oct
    • RE: Modifying rowsDemetris17 Oct
Re: Modifying rowsRick Gutleber17 Oct