dbTalk Databases Forums  

Migration form 1.7.40 to 2.0.7 (Connection::execute)

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


Discuss Migration form 1.7.40 to 2.0.7 (Connection::execute) in the mailing.database.mysql-plusplus forum.



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

Default Migration form 1.7.40 to 2.0.7 (Connection::execute) - 03-20-2006 , 09:45 AM






--0-1057725209-1142869470=:6955
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

I have migrated from 1.7.40 to 2.0.7. I had an issue compiling my code. I was using the execute member function in the Connection class to perform "FLUSH PRIVILEGES". However, the execute member function is not available anymore in 1.7.40. I have noticed there is a reload member function in the Connection class. However, the comments that describe the reload function states:
/// Simply wraps \c mysql_reload() in the C API. Since that
/// function is deprecated, this one is, too. The MySQL++
/// replacement is execute("FLUSH PRIVILEGES").

This seems to suggest that the reload function is a deprecated function and that we'd be better using the execute("FLUSH PRIVILEGES") function, which isn't available anymore.

Is there something I am missing here?

Martin


---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
--0-1057725209-1142869470=:6955--

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

Default Re: Migration form 1.7.40 to 2.0.7 (Connection::execute) - 03-20-2006 , 11:58 AM






Martin Dubuc wrote:
Quote:
Is there something I am missing here?
Yes, the section in the user manual where it describes how to migrate
code. Use Query.

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