comparison make_ER.sh @ 8:fa8974a41c76 MySQLdb

New error handling code, plus some small fixes from 1.2
author adustman
date Sun, 11 Feb 2007 21:36:29 +0000
parents
children 7773efbe9b30
comparison
equal deleted inserted replaced
7:b1e508854b27 8:fa8974a41c76
1 #!/bin/sh
2 echo '"""MySQL ER Constants
3
4 These constants are error codes for the bulk of the error conditions
5 that may occur.
6
7 """'
8 sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h