MQFS Live · Firebird 5.0

All Firebird 5.0 parameters forcompatibilitywith your system

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

Your system is not wrong. The client and the server got stricter.

Four placeswhere it is solved: firebird.conf · client · database (trigger) · HQBird.

Part 1 of 4

firebird.conf
six server parameters

It changes the server: types, time zone, encryption, authentication and users. After editing,restartFirebird.

firebird.conf · 1 of 6

1DataTypeCompatibility = 2.5

What it does

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.

Why it matters

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

2DefaultTimeZone = -03:00

What it does

Pins the server's default time zone for date/time types that carry a zone.

Why it matters

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

3WireCrypt = Disabled

What it does

Allows connectionswithout encryptionon the protocol.

Why it matters

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

⚠ Caution

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

4AuthServer = Legacy_Auth

What it does

Defines which methods theparameteraccepts to authenticate whoever connects.

Why it matters

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

5AuthClient = Legacy_Auth

What it does

Same idea, on theclient side: it is what the client offers the server.

Why it matters

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

6UserManager = Legacy_UserManager

What it does

Manages users in thelegacy catalog, instead of the new one (SRP).

Why it matters

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

For those who useBDE

BDE (Borland SQL Links) is the hardest case: it does not talk to the 5.0 client.

BDE · 7 of 10

7BDE: the two paths

1 · Keep what you already have

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.

2 · Use the gds32 shim (MQFS)

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.

Get the gds32 shim (MQFS) by e-mail

mqfs.com.br/gds32_dll_bde

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

Trigger OnConnect

A setting inside the database: it applies per connection, without touching the system or the server.

Database · 8 of 10

8set bind of bigint to integer

What it does

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

WithHQBird

Two extra settings HQBird offers — designed exactly for old code.

HQBird · 9 of 10

9LegacyIntForCount = true

What it does

O COUNT(*)returnsINTEGERinstead of BIGINT.

Why it matters

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

10LegacyTimeLiterals = true

What it does

Accepts date/time literals in theold format, the way SQL was written back in 2.5 days.

Why it matters

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

The ten, on one screen

Server (firebird.conf)

  • 1 · DataTypeCompatibility = 2.5
  • 2 · DefaultTimeZone = -03:00
  • 3 · WireCrypt = Disabled
  • 4 · AuthServer = Legacy_Auth
  • 5 · AuthClient = Legacy_Auth
  • 6 · UserManager = Legacy_UserManager

Client, database and HQBird

  • 7 · BDE: keep fbclient.dll 2.5
  • 8 · OnConnect trigger: set bind of bigint to integer
  • 9 · HQBird: LegacyIntForCount = true
  • 10 · HQBird: LegacyTimeLiterals = true

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

Migration Framework+compatibility parameters

O Migration Frameworkspeeds up the massmigration of databases. These parameters speed up theapplication readiness.

Together, the migration becomes extremely fast.

https://download.mqfs.com.br/

MQFS · Firebird end to end · mqfs.com.br

MQFS
← → · F full screen · P PDF MQFS · 10x more performance in up to 30 days, without touching hardware! 1 / 18