Subject Re: How to Identify 64 bit firebird
Author mariuz
--- In firebird-support@yahoogroups.com, "mariuz" <mapopa@...> wrote:
>
>
>
> --- In firebird-support@yahoogroups.com, "robert.gilland" <robert.gilland@> wrote:
> >
> >
> > tried this in a Firebird 2.5 system version 2.5.0.26074
> > on a database built from it ODS 11.2
> >
> > I got error "Context variable ENGINE_64BITS is not found in namespace SYSTEM"
> >
> > Is this meant to work?
> Not yet it was just a suggestion for developers
> And it must be implemented first

you can use the services api to retrive the engine
for example using uib or ibo you can retrieve
InfoImplementation
this is the logic in Lazarus for example
Label1.caption:= inttostr(UIBDataBase1.InfoImplementation);
and then
make use the implementation number to get the text and 64 bitness
in the source code for firebird 2.5 in src/jrd/utl.cpp is defined this way

"Firebird/linux AMD64", // 66
"Firebird/FreeBSD/amd64", // 67
"Firebird/x86-64/Windows NT", // 68


so if is 68 or 66 then is 64 bit/x64-64