Searched refs:py_val (Results 1 – 1 of 1) sorted by relevance
541 void _pysqlite_set_result(sqlite3_context* context, PyObject* py_val) in _pysqlite_set_result() argument548 if ((!py_val) || PyErr_Occurred()) { in _pysqlite_set_result()550 } else if (py_val == Py_None) { in _pysqlite_set_result()552 } else if (PyInt_Check(py_val)) { in _pysqlite_set_result()553 longval = PyInt_AsLong(py_val); in _pysqlite_set_result()555 } else if (PyFloat_Check(py_val)) { in _pysqlite_set_result()556 sqlite3_result_double(context, PyFloat_AsDouble(py_val)); in _pysqlite_set_result()557 } else if (PyBuffer_Check(py_val)) { in _pysqlite_set_result()558 if (PyObject_AsCharBuffer(py_val, &buffer, &buflen) != 0) { in _pysqlite_set_result()563 } else if (PyString_Check(py_val)) { in _pysqlite_set_result()[all …]