dbTalk Databases Forums  

A patch for connection.cpp

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


Discuss A patch for connection.cpp in the mailing.database.mysql-plusplus forum.



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

Default A patch for connection.cpp - 02-15-2006 , 03:55 AM






--Boundary-ZqtmQ08eokPwbbCLJlaCb
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Description: Mail message body

Hi, all

I found Connection::set_option() and Connection::connect() do not work
together.

In MySQL C API, mysql_options() should be called after mysql_init() and
before mysql_real_connect().

Calling apply_pending_options() in Connection::connect() should be so.

------------------------------------------------
Hiroshi Ayukawa



--Boundary-ZqtmQ08eokPwbbCLJlaCb
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
--Boundary-ZqtmQ08eokPwbbCLJlaCb--

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

Default Re: A patch for connection.cpp - 03-04-2006 , 02:57 AM






Hiroshi Ayukawa wrote:
Quote:
I found Connection::set_option() and Connection::connect() do not work
together.

In MySQL C API, mysql_options() should be called after mysql_init() and
before mysql_real_connect().

Calling apply_pending_options() in Connection::connect() should be so.
Can you please supply a patch for this, against the 2.1 branch? I'm not
sure I understand what you're saying, and I wouldn't like to guess.
Working code will speak most clearly.

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