[7773ef]: make_ER.sh Maximize Restore History

Download this file

make_ER.sh    14 lines (11 with data), 341 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/sh
echo '"""
MySQL ER Constants
------------------
These constants are error codes for the bulk of the error conditions
that may occur.
"""
__revision__ = "$Revision$"[11:-2]
__author__ = "$Author$"[9:-2]
'
sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h