| 2272 | } |
| 2273 | |
| 2274 | int API_ROUTINE isc_version(FB_API_HANDLE* handle, FPTR_VERSION_CALLBACK routine, void* user_arg) |
| 2275 | { |
| 2276 | /************************************** |
| 2277 | * |
| 2278 | * g d s _ $ v e r s i o n |
| 2279 | * |
| 2280 | ************************************** |
| 2281 | * |
| 2282 | * Functional description |
| 2283 | * Obtain and print information about a database. |
| 2284 | * |
| 2285 | **************************************/ |
| 2286 | if (!routine) |
| 2287 | routine = print_version; |
| 2288 | |
| 2289 | LocalStatus ls; |
| 2290 | CheckStatusWrapper st(&ls); |
| 2291 | RefPtr<IAttachment> att(REF_NO_INCR, handleToIAttachment(&st, handle)); |
| 2292 | if (st.getState() & IStatus::STATE_ERRORS) |
| 2293 | return FB_FAILURE; |
| 2294 | |
| 2295 | VersionCallback callback(routine, user_arg); |
| 2296 | UtilInterfacePtr()->getFbVersion(&st, att, &callback); |
| 2297 | |
| 2298 | return st.getState() & IStatus::STATE_ERRORS ? FB_FAILURE : FB_SUCCESS; |
| 2299 | } |
| 2300 | |
| 2301 | |
| 2302 | void API_ROUTINE isc_format_implementation(USHORT impl_nr, |
nothing calls this directly
no test coverage detected