mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
The Andrea's-bunch-o-fixes (2).
This commit is contained in:
parent
b742c48c67
commit
bd5b76d0e4
|
@ -904,7 +904,8 @@ _psyco_curs_has_write_check(PyObject* o, void* var)
|
|||
return 1;
|
||||
}
|
||||
else {
|
||||
PyErr_SetString(TypeError, "argument 1 must have a .write() method");
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"argument 1 must have a .write() method");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -538,7 +538,7 @@ _pq_fetch_tuples(cursorObject *curs)
|
|||
/* 4,5/ scale and precision */
|
||||
if (ftype == NUMERICOID) {
|
||||
PyTuple_SET_ITEM(dtitem, 4, PyInt_FromLong((fmod >> 16) & 0xFFFF));
|
||||
PyTuple_SET_ITEM(dtitem, 5, PyInt_FromLong(fmod & 0xFFFF) - 4);
|
||||
PyTuple_SET_ITEM(dtitem, 5, PyInt_FromLong((fmod & 0xFFFF) - 4));
|
||||
}
|
||||
else {
|
||||
Py_INCREF(Py_None);
|
||||
|
|
Loading…
Reference in New Issue
Block a user