Mercurial > p > mysql-python > mysqldb-2
view 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 |
line wrap: on
line source
#!/bin/sh echo '"""MySQL ER Constants These constants are error codes for the bulk of the error conditions that may occur. """' sed -e 's|/\* \(.*\) \*/|# \1|' -e 's/^#define \(ER_\)*//' -e 's/ \([0-9][0-9]*\)/ = \1/' </usr/include/mysql/mysqld_error.h