Subject | Re: How to Identify 64 bit firebird |
---|---|
Author | mariuz |
Post date | 2011-05-04T13:34Z |
--- In firebird-support@yahoogroups.com, "mariuz" <mapopa@...> wrote:
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
>you can use the services api to retrive the engine
>
>
> --- 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
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