Merged revisions 62797,62807 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 3 May 2007 00:10:38 +0000 (00:10 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 3 May 2007 00:10:38 +0000 (00:10 +0000)
commita2c8e8a4a7ca75b07736f5be1d1ea43405d99ebf
treeae262c358861b14a8a74882a4b375e185534cd10
parentcef98155efe596d0376dd22ae8ea41643d257641
Merged revisions 62797,62807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r62797 | kpfleming | 2007-05-02 19:57:23 -0400 (Wed, 02 May 2007) | 7 lines

improve static Realtime config loading from PostgreSQL:
don't request sorting on fields that are pointless to sort on
use ast_build_string() instead of snprintf()
don't request the list of fieldnames that resulted from the query when we both knew what they were before we ran the query _AND_ we aren't going to do anything with them anyway

(patch by me, inspired by blitzrage's bug report about res_config_odbc)

................
r62807 | kpfleming | 2007-05-02 20:02:57 -0400 (Wed, 02 May 2007) | 15 lines

Merged revisions 62796 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62796 | kpfleming | 2007-05-02 19:53:46 -0400 (Wed, 02 May 2007) | 7 lines

increase reliability and efficiency of static Realtime config loading via ODBC:
don't request fields we aren't going to use
don't request sorting on fields that are pointless to sort on
explicitly request the fields we want, because we can't expect the database to always return them in the order they were created

(reported by blitzrage in person (!), patch by me)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_config_odbc.c
res/res_config_pgsql.c