Skip navigation links

MySQL Forums :: C/C++ :: TinyInt wasn't stored well into the table when reading from a int C++ type.


Advanced Search

TinyInt wasn't stored well into the table when reading from a int C++ type.
Posted by: ross guecel ()
Date: October 15, 2012 09:59PM

Hello everyone, in my C++ code I have field table named tiene_sub, it stores and integer (0 or 1).
The corresponding field in the table has a TINYINT type, however the insert didn't store anything readable, a little rectangle. :S

query << "Insert Ignore into Peliculas (Cod_Pelic,Nom_Pelic,Path, Tiene_Sub, Fecha_Ing, Categoria, Genero, Director, Artistas) VALUES ( " << cod << ", " << nom_pelic << ", " << path << ", " << tiene_sub << ", " << t << ", " << categ << ", " << genero << ", " << director << ", " << artistas << ")";

I appreciate any suggestion on this. Thanks

Regards

Ross

Options: ReplyQuote


Subject Written By Posted
TinyInt wasn't stored well into the table when reading from a int C++ type. ross guecel 10/15/2012 09:59PM
Re: TinyInt wasn't stored well into the table when reading from a int C++ type. Rick James 10/18/2012 09:16AM
Re: TinyInt wasn't stored well into the table when reading from a int C++ type. ross guecel 10/18/2012 10:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.