~vcs-imports/python-mysqldb/old-svn-trunk

« back to all changes in this revision

Viewing changes to src/mysqlmod.h

  • Committer: adustman
  • Date: 2009-03-30 20:21:24 UTC
  • Revision ID: vcs-imports@canonical.com-20090330202124-j3ehf98sy2zl06ih
Reimplement MySQL->Python type conversion in C; much simpler and easier to deal with now. Hey, all my tests pass, so I guess that means I need to write some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        PyObject_HEAD
27
27
        MYSQL connection;
28
28
        int open;
29
 
        PyObject *converter;
 
29
        PyObject *decoder_stack;
30
30
} _mysql_ConnectionObject;
31
31
 
32
32
#define check_connection(c) if (!(c->open)) return _mysql_Exception(c)
41
41
        MYSQL_RES *result;
42
42
        int nfields;
43
43
        int use;
44
 
        PyObject *converter;
 
44
        PyObject *decoders;
 
45
        PyObject *fields;
45
46
} _mysql_ResultObject;
46
47
 
47
48
extern PyTypeObject _mysql_ResultObject_Type;