MCPcopy Create free account
hub / github.com/SOCI/soci / alloc

Method alloc

src/backends/odbc/statement.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void odbc_statement_backend::alloc()
28{
29 SQLRETURN rc;
30
31 // Allocate environment handle
32 rc = SQLAllocHandle(SQL_HANDLE_STMT, session_.hdbc_, &hstmt_);
33 if (is_odbc_error(rc))
34 {
35 throw odbc_soci_error(SQL_HANDLE_DBC, session_.hdbc_,
36 "allocating statement");
37 }
38}
39
40void odbc_statement_backend::clean_up()
41{

Callers

nothing calls this directly

Calls 1

is_odbc_errorFunction · 0.85

Tested by

no test coverage detected