You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIU, these are parameters which firebird-driver 'knows'; they are defined in FB 3.x and some of them - in FB 4.x+.
But several parameters from firebird.conf are missed in this map.
They can be found if we run script "fd-fb-conf.py" (see attach) with single input argument = full path to appropriate client library (e.g. c:\python3x\python.exe fd-fb-conf.py c:\path_to_fb\fbclient.dll etc).
I've done this for FB 4.x, 5.x and 6.x.
Differences are collected into .xlsx file (see in attached .zip), and this is what we will see for FB 4.x ... 6.x:
Parameters marked in gray color can be ignored: they either not used at all or are experimental and may be removed in the future.
But what about rest parameters ?
Can they be added in the config_items so that we will able to used them in custom driver-config instances ?
Particularly, I'm interesting now about InlineSortThreshold.
This:
srv_cfg = driver_config.register_server(name = f'srv_cfg_2650', config = '')
db_cfg_name = f'db_cfg_2650'
db_cfg_object = driver_config.register_database(name = db_cfg_name)
db_cfg_object.server.value = srv_cfg.name
db_cfg_object.protocol.value = NetProtocol.INET
db_cfg_object.database.value = str(act.db.db_path)
db_cfg_object.config.value = f"""
InlineSortThreshold = 100
"""
with connect(db_cfg_name, user = act.db.user, password = act.db.password) as con:
cur = con.cursor()
cur.execute("select rdb$config_name, rdb$config_value from rdb$config where rdb$config_name = 'InlineSortThreshold'")
for r in cur:
print(r[0],r[1])
In core.py we can find this dictionary:
AFAIU, these are parameters which firebird-driver 'knows'; they are defined in FB 3.x and some of them - in FB 4.x+.
But several parameters from firebird.conf are missed in this map.
They can be found if we run script "fd-fb-conf.py" (see attach) with single input argument = full path to appropriate client library (e.g.
c:\python3x\python.exe fd-fb-conf.py c:\path_to_fb\fbclient.dll
etc).I've done this for FB 4.x, 5.x and 6.x.
Differences are collected into .xlsx file (see in attached .zip), and this is what we will see for FB 4.x ... 6.x:
Parameters marked in gray color can be ignored: they either not used at all or are experimental and may be removed in the future.
But what about rest parameters ?
Can they be added in the config_items so that we will able to used them in custom driver-config instances ?
Particularly, I'm interesting now about InlineSortThreshold.
This:
-- does not work as expected and returns always default value (1000).
So we have to create special alias in the databases.conf with non-default value of this parameter to be used further in our QA.
IMO, this is inconvenient.
firebird-driver-missed-parameters-from-FB-config_-_xlsx.zip
fd-fb-conf_-_py.zip
The text was updated successfully, but these errors were encountered: