dbTalk Databases Forums  

Problems with insert

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Problems with insert in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Diogo de Andrade
 
Posts: n/a

Default Problems with insert - 04-05-2005 , 11:54 AM






Hey all!

I've been trying to use the MySQL++ library (btw, amazing job, very
powerful and simple to use), but I'm having some problems with the
insertion/update part of it...

The thing is, I'm trying to insert a new record into a table, using the
SSQLS. The problem is that when I do the "query.insert(row)", and then I
print the "query.preview()", I get a string that looks like a pointer,
and then the correct stuff (ex. "004B7524players
(id_players,player_name,email,hp,mp) VALUES
(0,'Me','test (AT) test (DOT) com',100,200)")
I step into the source code, and where it is 004B7524 it should be
"INSERT INTO" (which would lead to a correct SQL query), so I deduce
that 004B7524 is the pointer to that string, and somehow there's a
linking and/or incompatibility with Visual Studio .Net...
Can someone help me? This would really make my life simpler than
creating the query "by hand"...

Thanks in advance

Diogo de Andrade
Director Criativo e de Tecnologia
Spellcaster Studios
diogo.andrade (AT) spellcasterstudios (DOT) com





--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Problems with insert - 04-05-2005 , 12:18 PM






Diogo de Andrade wrote:

Quote:
linking and/or incompatibility with Visual Studio .Net...
Yes, there's a known problem here. It also affects the custom2 and
custom3 examples. I don't have the personal interest needed to try and
debug this any time soon, because I don't do any serious MySQL++ work on
Windows. Either you're going to have to dig into the code and see if
you can find the problem, or wait for someone else to get up the interest.

I suspect that this is a result of the change from class Query deriving
from strstream to deriving from std::stringstream in v1.7.18, based
solely on the fact that these examples used to work with VC++, and
failed at roughly the same time.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.