]> 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 16:55:59 +0000 (16:55 +0000)
commitcce02a9d60156df2706af425963fb17d54a64abb
tree12ca03f32648831a5a3de927d9fc5a66c8167cda
parent44d7349958b164f82dc23d77e811d0c9c1e9eb7a
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 29eb4fe6203c75dd903d5128da47a51473a93297)
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