Bug #34825 perror on windows doesn't know about win32 error codes
Submitted: 26 Feb 2008 8:03 Modified: 8 Dec 2008 16:49
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.0.56, 5.1.23 OS:Microsoft Windows
Assigned to: Sergey Glukhov
Tags: perror
Triage: Triaged: D3 (Medium)

[26 Feb 2008 8:03] Shane Bester
Description:
On windows we would like to see the perror utility return mysql, posix and win32 errors.  Currently it doesn't, for example:

E:\mysql-5.1.23-rc-winx64\bin>perror 23
OS error code  23:  Too many open files in system

In actual fact Win32 error code 23 means 
ERROR_CRC Data error (cyclic redundancy check).

http://msdn2.microsoft.com/en-us/library/ms681382.aspx

As more engines (and even InnoDB) will use Win32 API, this
perror bug will become more important to customers, support engineers.

How to repeat:
perror <some win32 error code>
[26 Feb 2008 8:38] Valerii Kravchuk
Thank you for a bug report. Verified just as described.
[27 Feb 2008 14:57] Konstantin Osipov
Command line clients, setting to the right lead.
[20 Nov 2008 15:04] 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/59394

2720 Sergey Glukhov	2008-11-20
      Bug#34825 perror on windows doesn't know about win32 error codes
      extended perror to enable printing of Win32 system errors
[20 Nov 2008 15:28] 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/59400

2720 Sergey Glukhov	2008-11-20
      Bug#34825 perror on windows doesn't know about win32 error codes
      extended perror to enable printing of Win32 system errors
[27 Nov 2008 12:35] 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/60030

2714 Sergey Glukhov	2008-11-27
      Bug#34825 perror on windows doesn't know about win32 error codes
      extended perror to enable printing of Win32 system errors
[2 Dec 2008 13:01] Bugs System
Pushed into 5.0.74  (revid:sergey.glukhov@sun.com-20081127123340-skuc1v1knugq8pb2) (version source revid:matthias.leich@sun.com-20081128184708-uyjg2dfrj2va5o3d) (pib:5)
[2 Dec 2008 21:17] Paul Dubois
Noted in 5.0.74 changelog.

perror on Windows did not know about Win32 system error codes.

Setting report to NDI pending push into 5.1.x, 6.0.x.
[8 Dec 2008 10:20] Bugs System
Pushed into 5.1.31  (revid:sergey.glukhov@sun.com-20081127123340-skuc1v1knugq8pb2) (version source revid:ingo.struewing@sun.com-20081127152850-iwzy1vh9gqpg3s3x) (pib:5)
[8 Dec 2008 11:31] Bugs System
Pushed into 6.0.9-alpha  (revid:sergey.glukhov@sun.com-20081127123340-skuc1v1knugq8pb2) (version source revid:ingo.struewing@sun.com-20081127214152-x1avx1b1cyfshx1a) (pib:5)
[8 Dec 2008 16:49] Paul Dubois
Noted in 5.1.31, 6.0.9 changelogs.
[19 Jan 2009 11:24] Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090119095303-uwwvxiibtr38djii) (version source revid:tomas.ulin@sun.com-20090108105244-8opp3i85jw0uj5ib) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[19 Jan 2009 13:02] Bugs System
Pushed into 5.1.31-ndb-6.3.21 (revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (version source revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (merge vers: 5.1.31-ndb-6.3.21) (pib:6)
[19 Jan 2009 16:08] Bugs System
Pushed into 5.1.31-ndb-6.4.1 (revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (version source revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (merge vers: 5.1.31-ndb-6.4.1) (pib:6)