| 2445 | |
| 2446 | |
| 2447 | Batch* Attachment::createBatch(CheckStatusWrapper* status, ITransaction* transaction, |
| 2448 | unsigned stmtLength, const char* sqlStmt, unsigned dialect, |
| 2449 | IMessageMetadata* inMetadata, unsigned parLength, const unsigned char* par) |
| 2450 | { |
| 2451 | /************************************** |
| 2452 | * |
| 2453 | * c r e a t e B a t c h |
| 2454 | * |
| 2455 | ************************************** |
| 2456 | * |
| 2457 | * Functional description |
| 2458 | * Create jdbc-style batch for SQL statement. |
| 2459 | * |
| 2460 | **************************************/ |
| 2461 | Statement* stmt = prepare(status, transaction, stmtLength, sqlStmt, dialect, 0); |
| 2462 | if (status->getState() & IStatus::STATE_ERRORS) |
| 2463 | { |
| 2464 | return NULL; |
| 2465 | } |
| 2466 | |
| 2467 | Batch* rc = stmt->createBatch(status, inMetadata, parLength, par); |
| 2468 | if (status->getState() & IStatus::STATE_ERRORS) |
| 2469 | { |
| 2470 | stmt->release(); |
| 2471 | return NULL; |
| 2472 | } |
| 2473 | |
| 2474 | rc->tmpStatement = true; |
| 2475 | return rc; |
| 2476 | } |
| 2477 | |
| 2478 | |
| 2479 | void Attachment::setParamsFromDPB(ClumpletReader& dpb) |
no test coverage detected