NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | prefixed_int |
struct | prefixed_str |
Macros | |
#define | TDSODBC_BCP |
#define | VARCHAR_BIND(x) |
#define | INT_BIND(x) bcp_bind( odbc_conn, (unsigned char *) (prefixlen == 0 ? (void*)&x.value : &x), prefixlen, SQL_VARLEN_DATA, NULL, termlen, BCP_TYPE_SQLINT4, col++ ) |
#define | NULL_BIND(x, type) bcp_bind( odbc_conn, (unsigned char *) (prefixlen == 0 ? (void*)&x.value : &null_prefix), prefixlen, prefixlen == 0 ? SQL_NULL_DATA : SQL_VARLEN_DATA, NULL, termlen, type, col++ ) |
Typedefs | |
typedef char | bcp_init_char_t |
Functions | |
static void | init (void) |
static void | test_bind (int prefixlen) |
static void | set_attr (void) |
static void | report_bcp_error (const char *errmsg, int line, const char *file) |
static void | normal_inserts (int prefixlen) |
static void | normal_select (void) |
static void | special_inserts (void) |
static void | special_select (void) |
int | main (int argc, char *argv[]) |
#define INT_BIND | ( | x | ) | bcp_bind( odbc_conn, (unsigned char *) (prefixlen == 0 ? (void*)&x.value : &x), prefixlen, SQL_VARLEN_DATA, NULL, termlen, BCP_TYPE_SQLINT4, col++ ) |
#define NULL_BIND | ( | x, | |
type | |||
) | bcp_bind( odbc_conn, (unsigned char *) (prefixlen == 0 ? (void*)&x.value : &null_prefix), prefixlen, prefixlen == 0 ? SQL_NULL_DATA : SQL_VARLEN_DATA, NULL, termlen, type, col++ ) |
#define VARCHAR_BIND | ( | x | ) |
typedef char bcp_init_char_t |
|
static |
Definition at line 62 of file bcp.c.
References odbc_command, and tds_version.
Referenced by main().
Definition at line 252 of file bcp.c.
References init(), normal_inserts(), normal_select(), NULL, odbc_command, odbc_connect(), odbc_disconnect(), odbc_set_conn_attr, odbc_tds_version(), set_attr(), special_inserts(), special_select(), util::strcmp(), table_name, and tds_version.
Definition at line 289 of file bcp.c.
References bcp_batch(), bcp_done(), bcp_init(), bcp_sendrow(), FAIL, i, NULL, odbc_conn, report_bcp_error(), T, table_name, and test_bind().
Referenced by main().
|
static |
Definition at line 382 of file bcp.c.
References CHKCloseCursor, CHKFetch, CHKGetData, exit(), expected, i, odbc_command, ok, output, SQL_C_CHAR, SQL_NULL_DATA, SQLLEN, util::strcmp(), and total_cols.
Referenced by main().
Definition at line 238 of file bcp.c.
References file, NULL, odbc_report_error(), and odbc_stmt.
Referenced by normal_inserts(), and special_inserts().
|
static |
Definition at line 232 of file bcp.c.
References odbc_conn, and SQLSetConnectAttr.
Referenced by main().
|
static |
Definition at line 325 of file bcp.c.
References bcp_batch(), bcp_bind(), bcp_done(), bcp_init(), bcp_sendrow(), tagTIMESTAMP_STRUCT::day, DBDATETIME::dtdays, DBDATETIME::dttime, FAIL, tagTIMESTAMP_STRUCT::fraction, tagTIMESTAMP_STRUCT::hour, tagTIMESTAMP_STRUCT::minute, tagTIMESTAMP_STRUCT::month, not_null_bit, NULL, odbc_conn, tagSQL_NUMERIC_STRUCT::precision, report_bcp_error(), tagSQL_NUMERIC_STRUCT::scale, tagTIMESTAMP_STRUCT::second, tagSQL_NUMERIC_STRUCT::sign, SQL_NULL_DATA, T, tagSQL_NUMERIC_STRUCT::val, and tagTIMESTAMP_STRUCT::year.
Referenced by main().
|
static |
Definition at line 414 of file bcp.c.
References CHKCloseCursor, CHKFetch, CHKGetData, exit(), expected_special, i, odbc_command, ok, output, SQL_C_CHAR, SQLLEN, and util::strcmp().
Referenced by main().
Definition at line 148 of file bcp.c.
References assert, INT_BIND, not_null_bit, not_null_char, not_null_datetime, not_null_decimal, not_null_float, not_null_int, not_null_money, not_null_numeric, not_null_nvarchar, not_null_real, not_null_smalldatetime, not_null_smallint, not_null_smallmoney, not_null_tinyint, not_null_varchar, NULL_BIND, SUCCEED, and VARCHAR_BIND.
Referenced by normal_inserts().
|
static |
Definition at line 42 of file bcp.c.
Referenced by BOOST_AUTO_TEST_CASE(), CNewCleanup_imp::CdRegionEC(), char_test(), check_contains(), check_is(), CheckDiffs(), CheckLocalId(), CheckPrintPubProblems(), CheckPropagatedLocation(), CheckReturnCode(), CheckStrings(), CheckTargetedLocusEntry(), CheckType(), AbstractParser::Consume(), SPSG_Throttling::Discovered(), doFetch(), AbstractParser::Expect(), AbstractParser::ExpectSymbol(), get_results(), CPMCIDConverterServer::GetPmids(), IsMatchingIdMissing(), main(), normal_select(), odbc_get_cmd_line(), CMultiSourceWriterImpl::Open(), AbstractParser::ParseError(), ncbi::TAtomicStack< value_type >::pop_front(), ncbi::TAtomicStack< value_type >::push_front(), query_test(), RemoveStrain(), SPSG_Reply::SItem::Reset(), s_CompareFtables(), s_ReportCharCommentError(), s_USAStateTest(), same_int(), DeBruijn::SAtomic< uint8_t >::Set(), SPSG_Reply::SState::SetStatus(), DeBruijn::CDBGraph::SetVisited(), Test(), test(), test0(), test_row(), TestForRecomb(), TestInput(), TestMultipleEquivBioSources(), TestOneLatLonCountry(), TestOutput(), TestProc(), TestTable(), SPSG_Request::UpdateItem(), AbstractParser::ValueOf(), verify(), CSingleFeatValidator::x_ReportECNumFileStatus(), and CCassQueryList::Yield().
|
static |
Definition at line 51 of file bcp.c.
Referenced by special_select().
|
static |
Definition at line 10 of file bcp.c.
Referenced by special_inserts(), and test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 10 of file bcp.c.
Referenced by test_bind().
|
static |
Definition at line 249 of file bcp.c.
Referenced by _SQLTables(), CTL_Connection::BCPIn(), CODBC_Connection::BCPIn(), I_Connection::BCPIn(), CDB_Connection::BCPIn(), CBulkInsert::CBulkInsert(), CBulkInsertImpl::CBulkInsertImpl(), CKMetadata::CKMetadata(), CODBC_BCPInCmd::CODBC_BCPInCmd(), CConnection::CreateBulkInsert(), IConnection::CreateBulkInsert(), CDbapiCursorApp::CreateTable(), CTL_BCPInCmd::CTL_BCPInCmd(), CVDBTable::CVDBTable(), CTL_CursorCmd::Delete(), CTL_CursorCmdExpl::Delete(), CODBC_CursorCmd::Delete(), CODBC_CursorCmdExpl::Delete(), CDB_CursorCmd::Delete(), CDbapiSampleApp::DeleteLostTables(), CDbapiSampleApp::DeleteTable(), CDbapiTestSpeedApp::FetchFile(), CDbapiTestSpeedApp::FetchResults(), CConnection::GetBulkInsert(), IConnection::GetBulkInsert(), main(), CSDBAPI::NewBlobStore(), CDatabase::NewBlobStore(), CDatabase::NewBookmark(), CDatabase::NewBulkInsert(), normal_inserts(), CWGSDb_Impl::OpenTable(), Ctbl_feat::Read(), tds_cursor_update(), CTL_CursorCmd::Update(), CDB_CursorCmd::Update(), and CTL_Connection::x_IsLegacyBlobColumnType().
|
static |
Definition at line 59 of file bcp.c.
Referenced by CDbapiCtlibCFBase::CreateInstance(), CDbapiOdbcCFBase::CreateInstance(), CTL_Connection::CTL_Connection(), CTL_Connection::GetBLKVersion(), init(), and main().
Definition at line 49 of file bcp.c.
Referenced by normal_select().