List:MySQL++« Previous MessageNext Message »
From:Pitu Caleya Date:December 1 2004 11:58pm
Subject:Problem with Visual Studio .Net 2003
View as plain text  
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

Thread
Problem with Visual Studio .Net 2003Pitu Caleya2 Dec
  • Re: Problem with Visual Studio .Net 2003Warren Young2 Dec
    • Re: Problem with Visual Studio .Net 2003Warren Young6 Dec
Re: Problem with Visual Studio .Net 2003Pitu Caleya7 Dec
  • Re: Problem with Visual Studio .Net 2003Warren Young7 Dec
    • Re: Problem with Visual Studio .Net 2003Pitu Caleya8 Dec
Re: Problem with Visual Studio .Net 2003Warren Young9 Dec
Re: Problem with Visual Studio .Net 2003Pitu Caleya9 Dec
  • Re: Problem with Visual Studio .Net 2003Warren Young10 Dec
    • Re: Problem with Visual Studio .Net 2003Pitu Caleya10 Dec