dbTalk Databases Forums  

Re: Problem compiling simple program with SSQLS definition

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


Discuss Re: Problem compiling simple program with SSQLS definition in the mailing.database.mysql-plusplus forum.



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

Default Re: Problem compiling simple program with SSQLS definition - 12-19-2005 , 01:57 PM






On Thu, Dec 15, 2005 at 05:14:27PM -0200, Pedro Lamar??o wrote:
Quote:
The following program won't compile with g++ 3.3 or g++ 4.1 and mysql++
2.0.7:

#include <mysql++.h
#include <custom.h

sql_create_3(flux, 0, 0,
Looks like there's a bug in the macros, or the user manual is wrong, for
this line. It compiles with:

sql_create_3(flux, 1, 0,

That number is just for less-than comparison, and shouldn't hurt to leave
it at 1.

- Chris


--
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: Problem compiling simple program with SSQLS definition - 12-20-2005 , 02:13 AM






Chris Frey wrote:
Quote:
sql_create_3(flux, 0, 0,

Looks like there's a bug in the macros, or the user manual is wrong, for
this line.
I could have sworn I had working code that used that construct, to avoid
function overloading problems.

I could just reflexively change the manual to recommend "1, 0" in
difficult situations, but I think I'd better do some thinking on this first.

--
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
  #3  
Old   
Chris Frey
 
Posts: n/a

Default Re: Problem compiling simple program with SSQLS definition - 12-20-2005 , 03:22 AM



On Tue, Dec 20, 2005 at 01:13:25AM -0700, Warren Young wrote:
Quote:
Chris Frey wrote:
sql_create_3(flux, 0, 0,

Looks like there's a bug in the macros, or the user manual is wrong, for
this line.

I could have sworn I had working code that used that construct, to avoid
function overloading problems.

I could just reflexively change the manual to recommend "1, 0" in
difficult situations, but I think I'd better do some thinking on this first.
At first glance, I'd guess it's a bug in the macro, but I haven't looked
closely as to why. If you're not going to do sorting, there's no need
for less-than comparisons, and sorting may not have meaning for all data.

- Chris


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