Related fdo#79714 OSX-crash opening query or table in embedded Firebird ODB

See https://bugs.freedesktop.org/attachment.cgi?id=100839 and other comments

Change-Id: I1187b171caf54997f5e8850ade4a3fb35ad9ec29