| 25 | } |
| 26 | |
| 27 | void 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 | |
| 40 | void odbc_statement_backend::clean_up() |
| 41 | { |
nothing calls this directly
no test coverage detected