Bug #35329 connect does not set mysql_errno variable
Submitted: 17 Mar 2008 10:32 Modified: 4 Apr 2008 20:49
Reporter: Alexander Nozdrin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.1-bk/5.0bk OS:Any
Assigned to: Alexander Nozdrin CPU Architecture:Any

[17 Mar 2008 10:32] Alexander Nozdrin
Description:
'connect' command does not set 'mysql_errno' variable. Thus it's impossible
to know by the script if 'connect' failed or succeed.

How to repeat:
Establish a connection to non-existing server, check $mysql_errno.
[17 Mar 2008 10:39] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/44099

ChangeSet@1.2566, 2008-03-17 13:39:56+03:00, anozdrin@quad. +1 -0
  A patch for Bug#35329: connect does not set mysql_errno variable.
  
  The problem was that 'connect' command didn't set mysql_errno
  variable, thus the script was unable to determine whether connection
  was opened or not.
  
  The fix is to set this variable.
  
  Test cases will be added in the scope of Bug33507
  into connect.test file.
[17 Mar 2008 14:23] Alexander Nozdrin
Pushed into 5.1-runtime.
[26 Mar 2008 14:13] Bugs System
Pushed into 5.1.24-rc
[27 Mar 2008 17:49] Bugs System
Pushed into 6.0.5-alpha
[4 Apr 2008 20:49] Jon Stephens
Change in testing only. No user changes to document. Closed.