Hi!
I'm using mysql++ 1.7.23 and I set it up with Visual Studio .Net 2003. The
problem appears when I try to run this code:
Query query = _Con.query();
stock row;
row.set (0, item, value, number);
query.insert(row);
query.execute();
I obtain this result:
0045f058table (id,item,value.number) VALUES (0,"Ball",20,2)
Looking inside the code of SQLQuery::insert we have the following code:
*this << "INSERT INTO " << v.table() << " (" << v.field_list()
<< ") VALUES (" << v.value_list() << ")";
The "0045f058" in the begining of the query is the "INSERT INTO "
considering it as a void pointer. Why "_Myt& operator<<(const void *_Val)"
is called?
It happens with SQLQuery::insert,update,... and only with the first stream.
Any idea to solve it?
Thanls
_________________________________________________________________
Moda para esta temporada. Ponte al día de todas las tendencias.
http://www.msn.es/Mujer/moda/default.asp