| 96 | } |
| 97 | |
| 98 | void InternalProvider::getRemoteError(const FbStatusVector* status, string& err) const |
| 99 | { |
| 100 | err = ""; |
| 101 | |
| 102 | char buff[1024]; |
| 103 | const ISC_STATUS* p = status->getErrors(); |
| 104 | |
| 105 | for (;;) |
| 106 | { |
| 107 | const ISC_STATUS* code = p + 1; |
| 108 | if (!fb_interpret(buff, sizeof(buff), &p)) |
| 109 | break; |
| 110 | |
| 111 | string rem_err; |
| 112 | rem_err.printf("%lu : %s\n", *code, buff); |
| 113 | err += rem_err; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | Connection* InternalProvider::doCreateConnection() |
| 118 | { |