mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +08:00
Fix typos (#520)
This commit is contained in:
@ -94,7 +94,7 @@ Release: 2019-08-09
|
|||||||
|
|
||||||
* ``--static`` build supports ``libmariadbclient.a``
|
* ``--static`` build supports ``libmariadbclient.a``
|
||||||
* Try ``mariadb_config`` when ``mysql_config`` is not found
|
* Try ``mariadb_config`` when ``mysql_config`` is not found
|
||||||
* Fixed warning happend in Python 3.8 (#359)
|
* Fixed warning happened in Python 3.8 (#359)
|
||||||
* Fixed ``from MySQLdb import *``, while I don't recommend it. (#369)
|
* Fixed ``from MySQLdb import *``, while I don't recommend it. (#369)
|
||||||
* Fixed SEGV ``MySQLdb.escape_string("1")`` when libmariadb is used and
|
* Fixed SEGV ``MySQLdb.escape_string("1")`` when libmariadb is used and
|
||||||
no connection is created. (#367)
|
no connection is created. (#367)
|
||||||
@ -294,7 +294,7 @@ More tests for date and time columns. (#41)
|
|||||||
|
|
||||||
Fix calling .execute() method for closed cursor cause TypeError. (#37)
|
Fix calling .execute() method for closed cursor cause TypeError. (#37)
|
||||||
|
|
||||||
Improve peformance to parse date. (#43)
|
Improve performance to parse date. (#43)
|
||||||
|
|
||||||
Support geometry types (#49)
|
Support geometry types (#49)
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ _mysql_ResultObject_Initialize(
|
|||||||
PyObject *fun2=NULL;
|
PyObject *fun2=NULL;
|
||||||
int j, n2=PySequence_Size(fun);
|
int j, n2=PySequence_Size(fun);
|
||||||
// BINARY_FLAG means ***_bin collation is used.
|
// BINARY_FLAG means ***_bin collation is used.
|
||||||
// To distinguish text and binary, we shoud use charsetnr==63 (binary).
|
// To distinguish text and binary, we should use charsetnr==63 (binary).
|
||||||
// But we abuse BINARY_FLAG for historical reason.
|
// But we abuse BINARY_FLAG for historical reason.
|
||||||
if (fields[i].charsetnr == 63) {
|
if (fields[i].charsetnr == 63) {
|
||||||
flags |= BINARY_FLAG;
|
flags |= BINARY_FLAG;
|
||||||
|
@ -375,7 +375,7 @@ class CursorStoreResultMixIn:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def fetchall(self):
|
def fetchall(self):
|
||||||
"""Fetchs all available rows from the cursor."""
|
"""Fetches all available rows from the cursor."""
|
||||||
self._check_executed()
|
self._check_executed()
|
||||||
if self.rownumber:
|
if self.rownumber:
|
||||||
result = self._rows[self.rownumber :]
|
result = self._rows[self.rownumber :]
|
||||||
@ -437,7 +437,7 @@ class CursorUseResultMixIn:
|
|||||||
return r
|
return r
|
||||||
|
|
||||||
def fetchall(self):
|
def fetchall(self):
|
||||||
"""Fetchs all available rows from the cursor."""
|
"""Fetches all available rows from the cursor."""
|
||||||
self._check_executed()
|
self._check_executed()
|
||||||
r = self._fetch_row(0)
|
r = self._fetch_row(0)
|
||||||
self.rownumber = self.rownumber + len(r)
|
self.rownumber = self.rownumber + len(r)
|
||||||
|
@ -511,7 +511,7 @@ callproc(procname, args)
|
|||||||
can only be returned with a SELECT statement. Since a stored
|
can only be returned with a SELECT statement. Since a stored
|
||||||
procedure may return zero or more result sets, it is impossible
|
procedure may return zero or more result sets, it is impossible
|
||||||
for MySQLdb to determine if there are result sets to fetch
|
for MySQLdb to determine if there are result sets to fetch
|
||||||
before the modified parmeters are accessible.
|
before the modified parameters are accessible.
|
||||||
|
|
||||||
The parameters are stored in the server as @_*procname*_*n*,
|
The parameters are stored in the server as @_*procname*_*n*,
|
||||||
where *n* is the position of the parameter. I.e., if you
|
where *n* is the position of the parameter. I.e., if you
|
||||||
|
@ -793,7 +793,7 @@ class DatabaseAPI20Test(unittest.TestCase):
|
|||||||
con.close()
|
con.close()
|
||||||
|
|
||||||
def test_setoutputsize(self):
|
def test_setoutputsize(self):
|
||||||
# Real test for setoutputsize is driver dependant
|
# Real test for setoutputsize is driver dependent
|
||||||
raise NotImplementedError("Driver need to override this test")
|
raise NotImplementedError("Driver need to override this test")
|
||||||
|
|
||||||
def test_None(self):
|
def test_None(self):
|
||||||
|
Reference in New Issue
Block a user