|
|
| version 1.6, 2001/08/23 11:57:15 | version 1.8, 2001/08/23 12:10:30 |
|---|---|
| Line 289 public: | Line 289 public: |
| if(setjmp(cs.mark)) { | if(setjmp(cs.mark)) { |
| failed=true; | failed=true; |
| goto cleanup; | goto cleanup; |
| } | } else { |
| { | |
| const char *statement=preprocess_statement(services, cs, | const char *statement=preprocess_statement(services, cs, |
| astatement, lobs); | astatement, lobs); |
| Line 484 private: // private funcs | Line 483 private: // private funcs |
| stmthp, offset, limit, | stmthp, offset, limit, |
| handlers); | handlers); |
| break; | break; |
| default:/* | default: |
| /* | |
| case OCI_STMT_INSERT: | case OCI_STMT_INSERT: |
| case OCI_STMT_UPDATE: | case OCI_STMT_UPDATE: |
| case OCI_STMT_DELETE: | */ |
| case OCI_STMT_CREATE: | |
| case OCI_STMT_DROP: | |
| case OCI_STMT_ALTER: | |
| case OCI_STMT_BEGIN: | |
| case OCI_STMT_DECLARE:*/ | |
| break; | break; |
| } | } |
| } | } |
| Line 500 private: // private funcs | Line 495 private: // private funcs |
| void fetch_table(SQL_Driver_services& services, OracleSQL_connection_struct &cs, | void fetch_table(SQL_Driver_services& services, OracleSQL_connection_struct &cs, |
| OCIStmt *stmthp, unsigned long offset, unsigned long limit, | OCIStmt *stmthp, unsigned long offset, unsigned long limit, |
| SQL_Driver_query_event_handlers& handlers) { | SQL_Driver_query_event_handlers& handlers) { |
| // todo another set/longjump | |
| OCIParam *mypard; | OCIParam *mypard; |
| ub2 dtype; | ub2 dtype; |
| text *col_name; | text *col_name; |
| Line 519 private: // private funcs | Line 514 private: // private funcs |
| if(setjmp(cs.mark)) { | if(setjmp(cs.mark)) { |
| failed=true; | failed=true; |
| goto cleanup; | goto cleanup; |
| } | } else { |
| { | |
| // idea of preincrementing is that at error time all handles would free up | // idea of preincrementing is that at error time all handles would free up |
| while(++column_count<=MAX_COLS) { | while(++column_count<=MAX_COLS) { |
| /* get next descriptor, if there is one */ | /* get next descriptor, if there is one */ |
| Line 813 void check( | Line 807 void check( |
| msg=reason; | msg=reason; |
| else | else |
| msg="[can not get error description]"; | msg="[can not get error description]"; |
| break; | |
| } | } |
| case OCI_SUCCESS_WITH_INFO: | case OCI_SUCCESS_WITH_INFO: |
| msg="SUCCESS_WITH_INFO"; break; | msg="SUCCESS_WITH_INFO"; break; |