| 130 | } |
| 131 | |
| 132 | const char* db_oracle_error(ora_con_t* con, sword status) |
| 133 | { |
| 134 | switch (status) { |
| 135 | case OCI_SUCCESS: |
| 136 | return "internal (success)"; |
| 137 | |
| 138 | case OCI_SUCCESS_WITH_INFO: |
| 139 | case OCI_ERROR: |
| 140 | return db_oracle_errorinfo(con); |
| 141 | |
| 142 | case OCI_NEED_DATA: |
| 143 | return "need data"; |
| 144 | |
| 145 | case OCI_NO_DATA: |
| 146 | return "no data"; |
| 147 | |
| 148 | case OCI_INVALID_HANDLE: |
| 149 | return "invalid handle"; |
| 150 | |
| 151 | case OCI_STILL_EXECUTING: // ORA-3123 |
| 152 | return "executing (logic)"; |
| 153 | |
| 154 | case OCI_CONTINUE: |
| 155 | return "continue (library)"; |
| 156 | |
| 157 | default: |
| 158 | snprintf(errbuf, sizeof(errbuf), |
| 159 | "unknown status %u", status); |
| 160 | return errbuf; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | |
| 165 | /* |
no test coverage detected