MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_version

Function API_ROUTINE isc_version

src/yvalve/utl.cpp:2274–2299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2272}
2273
2274int 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
2302void API_ROUTINE isc_format_implementation(USHORT impl_nr,

Callers

nothing calls this directly

Calls 4

handleToIAttachmentFunction · 0.85
UtilInterfacePtrClass · 0.85
getStateMethod · 0.45
getFbVersionMethod · 0.45

Tested by

no test coverage detected