]> git.ipfire.org Git - thirdparty/asterisk.git/commit
extconfig: Allow explicit DB result set ordering to be disabled.
authorSean Bright <sean@seanbright.com>
Wed, 12 Jul 2023 16:03:59 +0000 (12:03 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 6 Sep 2023 18:21:30 +0000 (18:21 +0000)
commit7e8aadae5ae42f6af963abd557807086c67bbeee
treecb1c871c11861f044d1538335359fc862d0b734c
parentf287e8fce44f608a12a36b9477f2f745a51cc0c9
extconfig: Allow explicit DB result set ordering to be disabled.

Added a new boolean configuration flag -
`order_multi_row_results_by_initial_column` - to both res_pgsql.conf
and res_config_odbc.conf that allows the administrator to disable the
explicit `ORDER BY` that was previously being added to all generated
SQL statements that returned multiple rows.

Fixes: #179
(cherry picked from commit 1171beb7e45eff06d473915eaeef840fce842408)
configs/samples/res_config_odbc.conf.sample [new file with mode: 0644]
configs/samples/res_pgsql.conf.sample
res/res_config_odbc.c
res/res_config_pgsql.c