!14 【5.0.1补丁版本回合】bugfix回合5.0.0分支

Merge pull request !14 from zhangxubo/master
This commit is contained in:
opengauss_bot
2023-08-14 11:48:28 +00:00
committed by Gitee

View File

@ -97,11 +97,13 @@ typecast_BOOLEAN_cast(const char *s, Py_ssize_t len, PyObject *curs)
if (s == NULL) { Py_RETURN_NONE; }
switch (s[0]) {
case '1':
case 't':
case 'T':
res = Py_True;
break;
case '0':
case 'f':
case 'F':
res = Py_False;