Public =========================================================================================
| 225 | // Public |
| 226 | // ========================================================================================= |
| 227 | ODBCStatement::ODBCStatement(ODBCConnection& connection, |
| 228 | std::shared_ptr<Statement> spi_statement) |
| 229 | : connection_(connection), |
| 230 | spi_statement_(std::move(spi_statement)), |
| 231 | diagnostics_(&spi_statement_->GetDiagnostics()), |
| 232 | built_in_ard_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(), |
| 233 | nullptr, this, true, true, |
| 234 | connection.IsOdbc2Connection())), |
| 235 | built_in_apd_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(), |
| 236 | nullptr, this, true, true, |
| 237 | connection.IsOdbc2Connection())), |
| 238 | ipd_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(), nullptr, |
| 239 | this, false, true, |
| 240 | connection.IsOdbc2Connection())), |
| 241 | ird_(std::make_shared<ODBCDescriptor>(spi_statement_->GetDiagnostics(), nullptr, |
| 242 | this, false, false, |
| 243 | connection.IsOdbc2Connection())), |
| 244 | current_ard_(built_in_apd_.get()), |
| 245 | current_apd_(built_in_apd_.get()), |
| 246 | row_number_(0), |
| 247 | max_rows_(0), |
| 248 | rowset_size_(1), |
| 249 | is_prepared_(false), |
| 250 | has_reached_end_of_result_(false) {} |
| 251 | |
| 252 | ODBCConnection& ODBCStatement::GetConnection() { return connection_; } |
| 253 |
nothing calls this directly
no test coverage detected