| 114 | } |
| 115 | |
| 116 | char* findDynamicStrings(unsigned length, ISC_STATUS* ptr) throw() |
| 117 | { |
| 118 | while (length--) |
| 119 | { |
| 120 | const ISC_STATUS type = *ptr++; |
| 121 | if (type == isc_arg_end) |
| 122 | break; |
| 123 | |
| 124 | switch (type) |
| 125 | { |
| 126 | case isc_arg_cstring: |
| 127 | fb_assert(false); // CVC: according to the new logic, this case cannot happen |
| 128 | ptr++; |
| 129 | |
| 130 | case isc_arg_string: |
| 131 | case isc_arg_interpreted: |
| 132 | case isc_arg_sql_state: |
| 133 | return reinterpret_cast<char*>(*ptr); |
| 134 | |
| 135 | default: |
| 136 | ptr++; |
| 137 | break; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | return NULL; |
| 142 | } |
| 143 | |
| 144 | |
| 145 | } // namespace Firebird |
no outgoing calls
no test coverage detected