dbTalk Databases Forums  

sql_create problems...

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


Discuss sql_create problems... in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default sql_create problems... - 05-26-2006 , 07:47 AM






------=_NextPart_000_0001_01C680D2.E6A1F8E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

We are trying to use the SSQLS functions for an insert into our
database, but something with the macro is bugging us.. Here is what we
got:
=20
Code:
/*
This is located in the beginning of the cpp file for the class we are
using it in..=20
*/
sql_create_4(score,
0, 0,
std::string, name,
std::string, game,
long long, point,
mysqlpp:ate, playedtime);
=20
Compiling with:
g++ -I/usr/include/mysql -I/usr/local/include/mysql++/ -o
debug/HighScoreList.o -c HighScoreList.cpp

=20
Errors given is:
HighScoreList.cpp: In member function `score_cus_value_list<Manip>=20
score::value_list(const cchar*, Manip, mysqlpp::sql_cmp_type) const':
HighScoreList.cpp:6: error: syntax error before `,' token
HighScoreList.cpp: In member function `score_cus_field_list<Manip>=20
score::field_list(const cchar*, Manip, mysqlpp::sql_cmp_type) const':
HighScoreList.cpp:6: error: syntax error before `,' token
.... (and more)...
=20
//Leif Land=E9n

------=_NextPart_000_0001_01C680D2.E6A1F8E0--



Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: sql_create problems... - 05-31-2006 , 03:23 AM






Leif Landén wrote:
Quote:
Code:
/*
This is located in the beginning of the cpp file for the class we are
using it in..
*/
sql_create_4(score,
0, 0,
As stated in section 5.2 of the user manual, the second parameter to
this macro cannot be zero, and the third parameter cannot be equal to
the second.

--
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.