MQFS Live · Firebird 5.0
What to do when the legacy system meets Firebird 5.0 — and where each setting goes: on the server, on the client, in the database and in HQBird.
MQFS · Firebird end to end
What breaks
Four placeswhere it is solved: firebird.conf · client · database (trigger) · HQBird.
Part 1 of 4
It changes the server: types, time zone, encryption, authentication and users. After editing,restartFirebird.
firebird.conf · 1 of 6
Brings back Firebird 2.5 conversion behaviour: BOOLEAN, DECFLOAT, INT128 and time zone types return to the old format when the client cannot handle them.
Without it, the old driver receives a type it does not know and the query dies — the classicData type unknown.
# firebird.conf DataTypeCompatibility = 2.5
Serverparameter. Available from Firebird 4.0 onwards — on 3.0 this setting does not exist.
firebird.conf · 2 of 6
Pins the server's default time zone for date/time types that carry a zone.
Without a fixed zone, the time your legacy system reads follows the server's zone — and the data "moves" with the machine. With the zone pinned, the value is always the same.
# firebird.conf DefaultTimeZone = -03:00
Brazil no longer has daylight saving — so-03:00fixed is safe here.
firebird.conf · 3 of 6
Allows connectionswithout encryptionon the protocol.
The old client cannot negotiate encryption and the connection simply does not happen — from the outside it looks like "the server is down".
# firebird.conf WireCrypt = Disabled
Traffic stays in clear text on the network. Use it during the migration and on a trusted network — and go back to encrypted once the new client is in place.
firebird.conf · 4 of 6
Defines which methods theparameteraccepts to authenticate whoever connects.
The default isSrp,Legacy_Auth(the modern and the legacy one). With onlyLegacy_Auth, the server serves exactly the legacy environment — useful wheneverythingthere is old.
# firebird.conf AuthServer = Legacy_Auth # padrão: Srp, Legacy_Auth
Leaving only the legacy method, a user whose password was created in the new standard may not get in. Check the users before changing it.
firebird.conf · 5 of 6
Same idea, on theclient side: it is what the client offers the server.
It is the pair of the previous parameter. One without the other leaves half the path unanswered — and the error shows up as a login failure, not as a parameter.
# firebird.conf AuthClient = Legacy_Auth # padrão: Srp, Legacy_Auth
firebird.conf · 6 of 6
Manages users in thelegacy catalog, instead of the new one (SRP).
Old administration tools keep seeing and creating users. It is the setting that stops the "the user exists, but the tool cannot find it" problem.
# firebird.conf UserManager = Legacy_UserManager # padrão: SRP
Part 2 of 4
BDE (Borland SQL Links) is the hardest case: it does not talk to the 5.0 client.
BDE · 7 of 10
Keep theFirebird 2.5 fbclient.dllon the workstation. BDE keeps talking to the client it knows, and the server can be 5.0.
The quickest path to apply — but the client stays old and does not use the current protocol.
The shim takes the place ofgds32.dlland lets the system use thev5 fbclient— same system,without touching the code.
Real gain:faster protocoland an up-to-date client. It is the way out of the old client without rewriting the application.
Enter your name and e-mail and the package link lands in your inbox. It comes with thegds32.dll, a v5 fbclientand the installation README.
Part 3 of 4
A setting inside the database: it applies per connection, without touching the system or the server.
Database · 8 of 10
Every connection now treatsBIGINT como INTEGERwhen sending/receiving parameters. The old driver, which does not understand BIGINT, receives a plain integer.
CREATE OR ALTER TRIGGER TRG_ON_CONNECT ACTIVE ON CONNECT POSITION 0 AS BEGIN set bind of bigint to integer; END;
Advantage: it solves theData type unknownon BIGINT fieldswithout changing the structureof the database. Remember the setting applies totodasall connections.
Part 4 of 4
Two extra settings HQBird offers — designed exactly for old code.
HQBird · 9 of 10
O COUNT(*)returnsINTEGERinstead of BIGINT.
Anyone reading the result as a 32-bit integer (old drivers and components) works again — it was a silent error: the count arrived, but the type did not match.
# HQBird LegacyIntForCount = true
HQBird · 10 of 10
Accepts date/time literals in theold format, the way SQL was written back in 2.5 days.
It is the setting that avoids rewriting SQL spread across the system just to satisfy the new syntax — the old code stays valid.
# HQBird LegacyTimeLiterals = true
Wrapping up
Golden rule:these arecompatibility settings. They solve it now, but they weaken security and behaviour — plan to revert them once the system is updated.
The full path
O Migration Frameworkspeeds up the massmigration of databases. These parameters speed up theapplication readiness.
Together, the migration becomes extremely fast.
MQFS · Firebird end to end · mqfs.com.br