dbTalk Databases Forums  

Re: V2.0.1 & VS2003/2005 qry=new Query(con) => conn inside query

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


Discuss Re: V2.0.1 & VS2003/2005 qry=new Query(con) => conn inside query in the mailing.database.mysql-plusplus forum.



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

Default Re: V2.0.1 & VS2003/2005 qry=new Query(con) => conn inside query - 08-18-2005 , 11:00 AM






--------------010705050604070409020902
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

np (AT) sfr (DOT) fr wrote:
Quote:
Qry object does not contain a correct conn_ pointer.
That's not very helpful. What makes you think it is not valid? Is it
valid right after you create the Query object? At what point does it
become invalid?

Quote:
PS : i'm not able to run 'makemake vc',
Sorry, make.bat was accidentally left out of the distribution. I've
attached the current version.

I am sending this to the mailing list. Please do not email me directly.
This sort of thing belongs on the mailing list, where others can
benefit from this exchange.

Quote:
Code :

try {
con = new Connection(use_exceptions);
con->connect(DB_NAME,DB_HOST,DB_USER_NAME,DB_PASSWORD) ;
if(con!=NULL) {
qry = new Query(con);
a "standalone" usable class
}
if(con == NULL || con->connected()==false) {
Log::AddLog("ERROR Connection failed to MYSQL Server");
return false;
}
}
catch (BadQuery er ) {
Log::AddLog("ERROR while connecting to MYSQL Server" + String(er.what()));
return false;
}
return true;
That looks perfectly reasonable to me. What part of it fails?

--------------010705050604070409020902
Content-Type: text/plain;
name="make.bat"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="make.bat"

@echo off

rem Command line parsing
:reparse
if not exist lib\Makefile goto error
if "%1" == "clean" goto do_clean


rem Build the library file
cmd /c cd lib ^& make.bat %*
if errorlevel 1 goto end
echo.
echo MySQL++ library built successfully.
echo.
copy lib\*.dll examples > NUL

cmd /c cd examples ^& make.bat %*
if errorlevel 1 goto end
echo.
echo MySQL++ examples built successfully.
echo.
goto end


rem Remove generated files
:do_clean
if exist lib\Makefile cmd /c cd lib ^& make clean
del lib\Makefile lib\make.bat
if exist examples\Makefile cmd /c cd examples ^& make clean
del examples\Makefile examples\make.bat
shift
if "%1" NEQ "" goto reparse
goto end


rem Display error message
:error
echo.
echo You must run makemake first!
goto end


:end


--------------010705050604070409020902
Content-Type: text/plain; charset=us-ascii


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


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.