| 258 | |
| 259 | |
| 260 | void PgReader::CursorSetup() |
| 261 | { |
| 262 | std::ostringstream oss; |
| 263 | oss << "DECLARE cur CURSOR FOR " << getDataQuery(); |
| 264 | pg_begin(m_session); |
| 265 | pg_execute(m_session, oss.str()); |
| 266 | |
| 267 | log()->get(LogLevel::Debug) << "SQL cursor prepared: " << |
| 268 | oss.str() << std::endl; |
| 269 | } |
| 270 | |
| 271 | |
| 272 | void PgReader::CursorTeardown() |
nothing calls this directly
no test coverage detected