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
Views
Written By
Posted
TinyInt wasn't stored well into the table when reading from a int C++ type.
1570
October 15, 2012 09:59PM


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.