Search Toolkit Book for CStatementBase
#include <dbapi/driver/odbc/interfaces.hpp>
Definition at line 360 of file interfaces.hpp.
◆ CStatementBase() [1/2] ◆ CStatementBase() [2/2] ◆ ~CStatementBase() CStatementBase::~CStatementBase ( void )Definition at line 903 of file connection.cpp.
References GetConnection(), CODBC_Connection::m_ActiveStmt, m_Cmd, m_IsActive, NCBI_CATCH_ALL_X, NCBI_CURRENT_FUNCTION, NULL, ReportErrors(), SQL_HANDLE_STMT, SQL_SUCCESS, and SQLFreeHandle().
◆ CheckRC() bool CStatementBase::CheckRC ( int rc ) const ◆ CheckSIE() int CStatementBase::CheckSIE ( int rc, const char * msg, unsigned int msg_num ) constDefinition at line 940 of file connection.cpp.
References DATABASE_DRIVER_ERROR, GetDbgInfo(), msg(), ReportErrors(), SQL_ERROR, SQL_SUCCESS, and SQL_SUCCESS_WITH_INFO.
Referenced by CODBC_LangCmd::CloseCursor(), CODBC_LangCmd::Result(), CODBC_RPCCmd::Result(), CODBC_SendDataCmd::Result(), CODBC_LangCmd::SetCursorName(), and x_BindParam_ODBC().
◆ CheckSIENd() int CStatementBase::CheckSIENd ( int rc, const char * msg, unsigned int msg_num ) const ◆ Close() bool CStatementBase::Close ( void ) constDefinition at line 1608 of file connection.cpp.
References cancel_timeout, CheckRC(), CODBC_Connection::GetCancelTimeout(), GetConnection(), GetHandle(), CODBC_Connection::GetTimeout(), m_Cmd, result, SQL_ATTR_QUERY_TIMEOUT, SQL_CLOSE, SQLFreeStmt(), and SQLSetStmtAttr().
Referenced by CODBC_LangCmd::Cancel(), CODBC_RPCCmd::Cancel(), CODBC_RowResult::Close(), and CODBC_SendDataCmd::xCancel().
◆ GetBindParams() [1/2] CDBParams& CStatementBase::GetBindParams ( void ) inlinevirtual ◆ GetBindParams() [2/2] ◆ GetClientEncoding() EEncoding CStatementBase::GetClientEncoding ( void ) const inline ◆ GetConnection() [1/2]Definition at line 373 of file interfaces.hpp.
References impl::CCmdBase::GetConnImpl().
Referenced by Close(), CODBC_CursorCmdExpl::CloseCursor(), CODBC_CursorCmd::Delete(), CODBC_CursorCmdExpl::Delete(), GetClientEncoding(), CODBC_RowResult::GetConnection(), IsMultibyteClientEncoding(), CODBC_CursorCmdExpl::OpenCursor(), CODBC_CursorCmd::SendDataCmd(), CODBC_CursorCmdExpl::SendDataCmd(), CODBC_CursorCmd::Update(), CODBC_CursorCmdExpl::Update(), CODBC_CursorCmd::UpdateBlob(), CODBC_CursorCmdExpl::UpdateBlob(), x_Init(), CODBC_BCPInCmd::~CODBC_BCPInCmd(), CODBC_CursorCmd::~CODBC_CursorCmd(), CODBC_CursorCmdExpl::~CODBC_CursorCmdExpl(), CODBC_LangCmd::~CODBC_LangCmd(), CODBC_RPCCmd::~CODBC_RPCCmd(), CODBC_SendDataCmd::~CODBC_SendDataCmd(), and ~CStatementBase().
◆ GetConnection() [2/2] ◆ GetDbgInfo()Definition at line 388 of file interfaces.hpp.
References CODBC_Reporter::GetDbgInfo(), and m_Reporter.
Referenced by CheckRC(), CheckSIE(), CheckSIENd(), CODBC_CursorCmdExpl::CloseCursor(), CODBC_BCPInCmd::CODBC_BCPInCmd(), CODBC_SendDataCmd::CODBC_SendDataCmd(), CODBC_BCPInCmd::CommitBCPTrans(), CODBC_CursorCmd::Delete(), CODBC_CursorCmdExpl::Delete(), CODBC_BCPInCmd::EndBCP(), CODBC_RowResult::GetDbgInfo(), CODBC_CursorResult::GetDbgInfo(), CODBC_CursorCmd::OpenCursor(), CODBC_CursorCmdExpl::OpenCursor(), CODBC_LangCmd::Result(), CODBC_RPCCmd::Result(), CODBC_SendDataCmd::Result(), CODBC_LangCmd::Send(), CODBC_RPCCmd::Send(), CODBC_BCPInCmd::Send(), CODBC_SendDataCmd::SendChunk(), CODBC_CursorCmd::Update(), CODBC_CursorCmdExpl::Update(), CODBC_LangCmd::x_AssignParams(), CODBC_LangCmd::xCheck4MoreResults(), CODBC_RPCCmd::xCheck4MoreResults(), and CODBC_SendDataCmd::xCheck4MoreResults().
◆ GetHandle() SQLHSTMT CStatementBase::GetHandle ( void ) const inlineDefinition at line 369 of file interfaces.hpp.
References m_Cmd.
Referenced by Close(), CODBC_LangCmd::CloseCursor(), CODBC_RowResult::GetHandle(), CODBC_LangCmd::Result(), CODBC_RPCCmd::Result(), CODBC_SendDataCmd::Result(), CODBC_LangCmd::Send(), CODBC_RPCCmd::Send(), CODBC_SendDataCmd::SendChunk(), CODBC_LangCmd::SetCursorName(), x_BindParam_ODBC(), x_Init(), CODBC_LangCmd::xCheck4MoreResults(), CODBC_RPCCmd::xCheck4MoreResults(), and CODBC_SendDataCmd::xCheck4MoreResults().
◆ IsMultibyteClientEncoding() bool CStatementBase::IsMultibyteClientEncoding ( void ) const inline ◆ ReportError() ◆ ReportErrors() void CStatementBase::ReportErrors ( void ) const inlineDefinition at line 393 of file interfaces.hpp.
References m_Reporter, and CODBC_Reporter::ReportErrors().
Referenced by CheckRC(), CheckSIE(), CheckSIENd(), CODBC_BCPInCmd::CODBC_BCPInCmd(), CODBC_BCPInCmd::CommitBCPTrans(), CODBC_BCPInCmd::EndBCP(), CODBC_RowResult::ReportErrors(), CODBC_LangCmd::Send(), CODBC_RPCCmd::Send(), CODBC_BCPInCmd::Send(), CODBC_SendDataCmd::SendChunk(), CODBC_BCPInCmd::x_AssignParams(), x_Init(), CODBC_LangCmd::xCheck4MoreResults(), CODBC_RPCCmd::xCheck4MoreResults(), CODBC_SendDataCmd::xCheck4MoreResults(), and ~CStatementBase().
◆ ResetParams() bool CStatementBase::ResetParams ( void ) const inline ◆ RowCount() int CStatementBase::RowCount ( void ) const protectedvirtual ◆ SetDbgInfo() ◆ Type2String()Definition at line 1001 of file connection.cpp.
References eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Bit, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Image, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_SmallInt, eDB_Text, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, CDB_BigDateTime::eSyntax_Microsoft, CDB_Object::GetType(), and IsMultibyteClientEncoding().
Referenced by CODBC_LangCmd::x_AssignParams(), and CODBC_RPCCmd::x_AssignParams().
◆ Unbind() bool CStatementBase::Unbind ( void ) const inline ◆ x_BindParam_ODBC()Definition at line 1098 of file connection.cpp.
References CheckSIE(), eDB_BigDateTime, eDB_Bit, eDB_DateTime, eDB_Image, eDB_Numeric, eDB_Text, eDB_UnsupportedType, GetHandle(), CDB_Object::GetType(), SQL_PARAM_INPUT, SQLBindParameter(), x_GetCType(), x_GetCurDataSize(), x_GetData(), x_GetIndicator(), x_GetMaxDataSize(), and x_GetSQLType().
Referenced by CODBC_LangCmd::x_AssignParams(), and CODBC_RPCCmd::x_AssignParams().
◆ x_GetCType()Definition at line 1145 of file connection.cpp.
References eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_SmallInt, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, CDB_Object::GetType(), IsMultibyteClientEncoding(), SQL_C_BINARY, SQL_C_CHAR, SQL_C_DOUBLE, SQL_C_FLOAT, SQL_C_SBIGINT, SQL_C_SLONG, SQL_C_SSHORT, SQL_C_TYPE_TIMESTAMP, SQL_C_UTINYINT, SQL_C_WCHAR, and type.
Referenced by x_BindParam_ODBC().
◆ x_GetCurDataSize()Definition at line 1380 of file connection.cpp.
References eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_SmallInt, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, CDB_Object::GetType(), ncbi::grid::netcache::search::fields::size, SQLLEN, and x_GetMaxDataSize().
Referenced by x_BindParam_ODBC().
◆ x_GetData()Definition at line 1461 of file connection.cpp.
References _VERIFY, CMemPot::Alloc(), CUtf8::AsUTF8(), data, tagTIMESTAMP_STRUCT::day, eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_SmallInt, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, tagTIMESTAMP_STRUCT::fraction, AutoArray< X, Del >::get(), GetClientEncoding(), CDB_Object::GetType(), tagTIMESTAMP_STRUCT::hour, CDB_Object::IsNULL(), tagTIMESTAMP_STRUCT::minute, tagTIMESTAMP_STRUCT::month, CDB_Stream::MoveTo(), n, NULL, CDB_Stream::Read(), AutoArray< X, Del >::reset(), tagTIMESTAMP_STRUCT::second, CDB_Stream::Size(), t, and tagTIMESTAMP_STRUCT::year.
Referenced by x_BindParam_ODBC().
◆ x_GetIndicator()Definition at line 1424 of file connection.cpp.
References eDB_BigDateTime, eDB_Binary, eDB_Char, eDB_DateTime, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, CDB_Object::GetType(), CDB_Object::IsNULL(), SQL_NULL_DATA, and x_GetMaxDataSize().
Referenced by x_BindParam_ODBC().
◆ x_GetMaxDataSize()Definition at line 1283 of file connection.cpp.
References eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_SmallInt, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, CDB_Object::GetType(), IsMultibyteClientEncoding(), kMax_UInt, ncbi::grid::netcache::search::fields::size, and SQLULEN.
Referenced by x_BindParam_ODBC(), x_GetCurDataSize(), and x_GetIndicator().
◆ x_GetSQLType()Definition at line 1206 of file connection.cpp.
References eDB_BigDateTime, eDB_BigInt, eDB_Binary, eDB_Char, eDB_DateTime, eDB_Double, eDB_Float, eDB_Int, eDB_LongBinary, eDB_LongChar, eDB_SmallDateTime, eDB_SmallInt, eDB_TinyInt, eDB_VarBinary, eDB_VarBinaryMax, eDB_VarChar, eDB_VarCharMax, CDB_Object::GetType(), IsMultibyteClientEncoding(), SQL_FLOAT, SQL_INTEGER, SQL_LONGVARBINARY, SQL_LONGVARCHAR, SQL_NUMERIC, SQL_REAL, SQL_SMALLINT, SQL_TINYINT, SQL_TYPE_TIMESTAMP, SQL_UNKNOWN_TYPE, SQL_VARBINARY, SQL_VARCHAR, SQL_WLONGVARCHAR, SQL_WVARCHAR, and type.
Referenced by x_BindParam_ODBC().
◆ x_Init() void CStatementBase::x_Init ( void ) privateDefinition at line 871 of file connection.cpp.
References GetConnection(), GetHandle(), CODBC_Connection::GetTimeout(), CODBC_Connection::m_ActiveStmt, m_Cmd, m_IsActive, m_Reporter, CODBC_Connection::ReportErrors(), ReportErrors(), CODBC_Reporter::SetHandle(), SQL_ATTR_QUERY_TIMEOUT, SQL_ERROR, SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS_WITH_INFO, SQLAllocHandle(), and SQLSetStmtAttr().
Referenced by CStatementBase().
◆ CODBC_Connection ◆ m_Cmd ◆ m_IsActive bool CStatementBase::m_IsActive private ◆ m_Reporter ◆ m_RowCount SQLLEN CStatementBase::m_RowCount protectedDefinition at line 456 of file interfaces.hpp.
Referenced by CODBC_BCPInCmd::CODBC_BCPInCmd(), CODBC_LangCmd::Result(), CODBC_RPCCmd::Result(), CODBC_SendDataCmd::Result(), RowCount(), CODBC_LangCmd::RowCount(), CODBC_RPCCmd::RowCount(), CODBC_CursorCmdBase::RowCount(), CODBC_BCPInCmd::RowCount(), CODBC_LangCmd::Send(), and CODBC_RPCCmd::Send().
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4