Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /_mysql.h [7c7a89] .. [d55bfb] Maximize Restore

  Switch to unified view

a/_mysql.h b/_mysql.h
...
...
55
    PyObject *converter;
55
    PyObject *converter;
56
} _mysql_ResultObject;
56
} _mysql_ResultObject;
57
57
58
extern PyTypeObject _mysql_ResultObject_Type;
58
extern PyTypeObject _mysql_ResultObject_Type;
59
59
60
typedef struct {
61
  PyObject_HEAD
62
  PyObject *result;
63
  MYSQL_FIELD field;
64
  unsigned int index;
65
} _mysql_FieldObject;
66
67
extern PyTypeObject _mysql_FieldObject_Type;
68
60
int _mysql_server_init_done;
69
int _mysql_server_init_done;
61
#if MYSQL_VERSION_ID >= 40000
70
#if MYSQL_VERSION_ID >= 40000
62
#define check_server_init(x) if (!_mysql_server_init_done) { if (mysql_server_init(0, NULL, NULL)) { _mysql_Exception(NULL); return x; } else { _mysql_server_init_done = 1;} }
71
#define check_server_init(x) if (!_mysql_server_init_done) { if (mysql_server_init(0, NULL, NULL)) { _mysql_Exception(NULL); return x; } else { _mysql_server_init_done = 1;} }
63
#else
72
#else
64
#define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1
73
#define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1
65
#endif
74
#endif
66
75
67
PyObject *_mysql_MySQLError;
76
extern PyObject *_mysql_MySQLError;
68
 PyObject *_mysql_Warning;
77
extern PyObject *_mysql_Warning;
69
 PyObject *_mysql_Error;
78
extern PyObject *_mysql_Error;
70
 PyObject *_mysql_DatabaseError;
79
extern PyObject *_mysql_DatabaseError;
71
 PyObject *_mysql_InterfaceError; 
80
extern PyObject *_mysql_InterfaceError; 
72
 PyObject *_mysql_DataError;
81
extern PyObject *_mysql_DataError;
73
 PyObject *_mysql_OperationalError; 
82
extern PyObject *_mysql_OperationalError; 
74
 PyObject *_mysql_IntegrityError; 
83
extern PyObject *_mysql_IntegrityError; 
75
 PyObject *_mysql_InternalError; 
84
extern PyObject *_mysql_InternalError; 
76
 PyObject *_mysql_ProgrammingError;
85
extern PyObject *_mysql_ProgrammingError;
77
 PyObject *_mysql_NotSupportedError;
86
extern PyObject *_mysql_NotSupportedError;
78
PyObject *_mysql_error_map;
87
extern PyObject *_mysql_error_map;
79
88
80
extern PyObject *
89
extern PyObject *
81
_mysql_Exception(_mysql_ConnectionObject *c);
90
_mysql_Exception(_mysql_ConnectionObject *c);
82
91
83
extern int
92
extern int
84
_mysql_ResultObject_Initialize(
93
_mysql_ResultObject_Initialize(
85
    _mysql_ResultObject *self,
94
    _mysql_ResultObject *self,
86
    PyObject *args,
95
    PyObject *args,
87
    PyObject *kwargs);
96
    PyObject *kwargs);
97
98
extern int
99
_mysql_FieldObject_Initialize(
100
  _mysql_FieldObject *self,
101
  PyObject *args,
102
  PyObject *kwargs);