| 1573 | // |
| 1574 | |
| 1575 | static void gen_ddl( const act* action, int column) |
| 1576 | { |
| 1577 | // Set up command type for call to RDB$DDL |
| 1578 | |
| 1579 | const gpre_req* request = action->act_request; |
| 1580 | |
| 1581 | if (gpreGlob.sw_auto) |
| 1582 | { |
| 1583 | t_start_auto(action, 0, status_vector(action), column, true); |
| 1584 | printa(column, "if (%s)", gpreGlob.transaction_name); |
| 1585 | column += INDENT; |
| 1586 | } |
| 1587 | |
| 1588 | align(column); |
| 1589 | fprintf(gpreGlob.out_file, "%s->executeDyn(%s, %s, %d, fb_%d);", |
| 1590 | request->req_database->dbb_name->sym_string, |
| 1591 | status_vector(action), |
| 1592 | gpreGlob.transaction_name, request->req_length, request->req_ident); |
| 1593 | |
| 1594 | if (gpreGlob.sw_auto) |
| 1595 | { |
| 1596 | column -= INDENT; |
| 1597 | success(column, true, global_status_name); |
| 1598 | printa(column + INDENT, "%s->commit(%s);", |
| 1599 | gpreGlob.transaction_name, status_vector(action)); |
| 1600 | success(column, false, global_status_name); |
| 1601 | printa(column + INDENT, "%s->rollback(%s);", |
| 1602 | gpreGlob.transaction_name, status_vector(NULL)); |
| 1603 | } |
| 1604 | |
| 1605 | set_sqlcode(action, column); |
| 1606 | } |
| 1607 | |
| 1608 | |
| 1609 | //____________________________________________________________ |
no test coverage detected