Exemple #1
0
result_t mysql::get_txBufferSize(int32_t &retVal)
{
    if (!m_conn)
        return CALL_E_INVALID_CALL;

    retVal = UMConnection_GetTxBufferSize(m_conn);
    return 0;
}
Exemple #2
0
int Connection_init(Connection *self, PyObject *arg)
{
  self->conn = UMConnection_Create (&capi);

  self->rxBufferSize = UMConnection_GetRxBufferSize (self->conn);
  self->txBufferSize = UMConnection_GetTxBufferSize (self->conn);
  self->Error = umysql_Error;
  self->SQLError = umysql_SQLError;

  self->PFN_PyUnicode_Encode = NULL;

  if (PyErr_Occurred())
  {
    PyErr_Format(PyExc_RuntimeError, "Exception is set for no error in %s", __FUNCTION__);
    return -1;
  }

  return 0;
}