Lines Matching refs:py_val
551 _pysqlite_set_result(sqlite3_context* context, PyObject* py_val) in _pysqlite_set_result() argument
553 if (py_val == Py_None) { in _pysqlite_set_result()
555 } else if (PyInt_Check(py_val)) { in _pysqlite_set_result()
556 sqlite3_result_int64(context, (sqlite_int64)PyInt_AsLong(py_val)); in _pysqlite_set_result()
557 } else if (PyLong_Check(py_val)) { in _pysqlite_set_result()
558 sqlite_int64 value = _pysqlite_long_as_int64(py_val); in _pysqlite_set_result()
562 } else if (PyFloat_Check(py_val)) { in _pysqlite_set_result()
563 sqlite3_result_double(context, PyFloat_AsDouble(py_val)); in _pysqlite_set_result()
564 } else if (PyBuffer_Check(py_val)) { in _pysqlite_set_result()
567 if (PyObject_AsCharBuffer(py_val, &buffer, &buflen) != 0) { in _pysqlite_set_result()
572 } else if (PyString_Check(py_val)) { in _pysqlite_set_result()
573 sqlite3_result_text(context, PyString_AsString(py_val), -1, SQLITE_TRANSIENT); in _pysqlite_set_result()
574 } else if (PyUnicode_Check(py_val)) { in _pysqlite_set_result()
575 PyObject * stringval = PyUnicode_AsUTF8String(py_val); in _pysqlite_set_result()