Mercurial > p > mysql-python > mysqldb-2
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/make_ER.sh Sun Feb 11 21:36:29 2007 +0000 @@ -0,0 +1,8 @@ +#!/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