mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +08:00
Change version number, back out memory changes.
This commit is contained in:
@ -16,10 +16,10 @@ MySQLdb.converters module.
|
|||||||
__author__ = "Andy Dustman <andy@dustman.net>"
|
__author__ = "Andy Dustman <andy@dustman.net>"
|
||||||
__revision__ = """$Revision$"""[11:-2]
|
__revision__ = """$Revision$"""[11:-2]
|
||||||
version_info = (
|
version_info = (
|
||||||
|
0,
|
||||||
|
9,
|
||||||
1,
|
1,
|
||||||
0,
|
"gamma",
|
||||||
0,
|
|
||||||
"beta",
|
|
||||||
1)
|
1)
|
||||||
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
||||||
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]
|
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#define version_info "(1,0,0,'beta',1)"
|
#define version_info "(0,9,1,'gamma',1)"
|
||||||
#define __version__ "1.0.0"
|
#define __version__ "0.9.1"
|
||||||
/*
|
/*
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -159,7 +159,7 @@ _mysql_ResultObject_New(
|
|||||||
int n, i;
|
int n, i;
|
||||||
MYSQL_FIELD *fields;
|
MYSQL_FIELD *fields;
|
||||||
_mysql_ResultObject *r;
|
_mysql_ResultObject *r;
|
||||||
if (!(r = PyObject_New(_mysql_ResultObject, &_mysql_ResultObject_Type)))
|
if (!(r = PyObject_NEW(_mysql_ResultObject, &_mysql_ResultObject_Type)))
|
||||||
return NULL;
|
return NULL;
|
||||||
r->conn = (PyObject *) conn;
|
r->conn = (PyObject *) conn;
|
||||||
r->converter = NULL;
|
r->converter = NULL;
|
||||||
@ -240,7 +240,7 @@ _mysql_connect(
|
|||||||
*read_default_group=NULL;
|
*read_default_group=NULL;
|
||||||
_mysql_ConnectionObject *c=NULL;
|
_mysql_ConnectionObject *c=NULL;
|
||||||
|
|
||||||
c = PyObject_New(_mysql_ConnectionObject,
|
c = PyObject_NEW(_mysql_ConnectionObject,
|
||||||
&_mysql_ConnectionObject_Type);
|
&_mysql_ConnectionObject_Type);
|
||||||
if (c == NULL) return NULL;
|
if (c == NULL) return NULL;
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ssssisOiiisss:connect",
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ssssisOiiisss:connect",
|
||||||
@ -1162,7 +1162,7 @@ _mysql_ConnectionObject_dealloc(
|
|||||||
Py_XDECREF(o);
|
Py_XDECREF(o);
|
||||||
}
|
}
|
||||||
Py_XDECREF(self->converter);
|
Py_XDECREF(self->converter);
|
||||||
PyObject_Del(self);
|
PyMem_Free((char *) self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
@ -1233,7 +1233,7 @@ _mysql_ResultObject_dealloc(
|
|||||||
mysql_free_result(self->result);
|
mysql_free_result(self->result);
|
||||||
Py_DECREF(self->conn);
|
Py_DECREF(self->conn);
|
||||||
Py_DECREF(self->converter);
|
Py_DECREF(self->converter);
|
||||||
PyObject_Del(self);
|
PyMem_Free((char *) self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
@ -75,7 +75,7 @@ MySQLdb. MySQLdb is free software.
|
|||||||
|
|
||||||
setup (# Distribution meta-data
|
setup (# Distribution meta-data
|
||||||
name = "MySQL-python",
|
name = "MySQL-python",
|
||||||
version = "1.0.0",
|
version = "0.9.1",
|
||||||
description = "An interface to MySQL",
|
description = "An interface to MySQL",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
author = "Andy Dustman",
|
author = "Andy Dustman",
|
||||||
|
Reference in New Issue
Block a user