view make_ER.sh @ 66:5a7c30cd9de2 MySQLdb

By exposing connection on result, decoders can be simplified: Only the field object is needed. Turned on leak testing and found a leak writing BLOBs. removed one of the old stubs in Cursor.
author adustman
date Sun, 29 Mar 2009 16:26:30 +0000
parents 7773efbe9b30
children
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.

"""
__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