Fix typos (#520)

This commit is contained in:
Kian Meng Ang
2021-11-17 16:38:58 +08:00
committed by GitHub
parent 8b920774f2
commit 6ebc1a1972
5 changed files with 7 additions and 7 deletions

View File

@ -94,7 +94,7 @@ Release: 2019-08-09
* ``--static`` build supports ``libmariadbclient.a``
* 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 SEGV ``MySQLdb.escape_string("1")`` when libmariadb is used and
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)
Improve peformance to parse date. (#43)
Improve performance to parse date. (#43)
Support geometry types (#49)

View File

@ -310,7 +310,7 @@ _mysql_ResultObject_Initialize(
PyObject *fun2=NULL;
int j, n2=PySequence_Size(fun);
// 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.
if (fields[i].charsetnr == 63) {
flags |= BINARY_FLAG;

View File

@ -375,7 +375,7 @@ class CursorStoreResultMixIn:
return result
def fetchall(self):
"""Fetchs all available rows from the cursor."""
"""Fetches all available rows from the cursor."""
self._check_executed()
if self.rownumber:
result = self._rows[self.rownumber :]
@ -437,7 +437,7 @@ class CursorUseResultMixIn:
return r
def fetchall(self):
"""Fetchs all available rows from the cursor."""
"""Fetches all available rows from the cursor."""
self._check_executed()
r = self._fetch_row(0)
self.rownumber = self.rownumber + len(r)

View File

@ -511,7 +511,7 @@ callproc(procname, args)
can only be returned with a SELECT statement. Since a stored
procedure may return zero or more result sets, it is impossible
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*,
where *n* is the position of the parameter. I.e., if you

View File

@ -793,7 +793,7 @@ class DatabaseAPI20Test(unittest.TestCase):
con.close()
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")
def test_None(self):