3 #if wxUSE_DATABASE_MYSQL 39 SetBlob(pData, nDataLength);
60 m_pBind->is_null = &m_bIsNull;
63 m_pBind->buffer_type = pField->type;
64 m_pBind->buffer_length = pField->length + 1;
70 void* pBuffer = m_Data.bufferValue.GetWriteBuf(m_pBind->buffer_length);
77 m_pBind->buffer = pBuffer;
85 int nType = m_pBind->buffer_type;
86 if (nType == MYSQL_TYPE_BLOB || nType == MYSQL_TYPE_TINY_BLOB || nType == MYSQL_TYPE_MEDIUM_BLOB
87 || nType == MYSQL_TYPE_LONG_BLOB)
88 m_pBind->length = &m_Data.nBufferLength;
107 m_pBind->buffer_type = MYSQL_TYPE_LONG;
114 m_pBind->buffer_type = MYSQL_TYPE_DOUBLE;
120 memset(
m_pBind, 0,
sizeof(MYSQL_BIND));
122 m_pBind->buffer_type = MYSQL_TYPE_STRING;
139 memcpy(pBuffer, pData, nDataLength);
140 m_pBind->buffer_type = MYSQL_TYPE_BLOB;
142 m_pBind->buffer_length = nDataLength;
154 m_pBind->buffer_type = MYSQL_TYPE_DATETIME;
161 m_pBind->buffer_type = MYSQL_TYPE_TINY;
165 #endif//wxUSE_DATABASE_MYSQL
unsigned long nBufferLength
wxCharBuffer charBufferValue
virtual ~wxMysqlPreparedStatementParameter()
wxMemoryBuffer bufferValue
void SetDate(const wxDateTime &dateValue)
wxMysqlPreparedStatementParameter(MYSQL_BIND *pBind)
void SetString(const wxString &strValue)
void ThrowDatabaseException()
void SetBlob(const void *pData, long nDataLength)
void SetErrorMessage(const wxString &strErrorMessage)
void SetDouble(double dblValue)
void SetBool(bool bValue)
static int TranslateErrorCode(int nCode)
virtual size_t GetEncodedStreamLength(const wxString &inputString)
void SetErrorCode(int nErrorCode)
virtual const wxCharBuffer ConvertToUnicodeStream(const wxString &inputString)