]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_odbc: Remove unneeded queries when determining if a table exists
authorMatthew Jordan <mjordan@digium.com>
Mon, 9 Feb 2015 02:34:51 +0000 (02:34 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 9 Feb 2015 02:34:51 +0000 (02:34 +0000)
commit85824113447c8507efa116c5a1a988bcddff71f5
tree07584d555bda2f9793ea4f5f26e85f846d75c9c5
parent675b2b8103da5551fcf19398cb0793b8602d4452
res/res_odbc: Remove unneeded queries when determining if a table exists

This patch modifies the ast_odbc_find_table function such that it only performs
a lookup of the requested table if the table is not already known. Prior to
this patch, a queries would be executed against the database even if the table
was already known and cached.

Review: https://reviewboard.asterisk.org/r/4405/

ASTERISK-24742 #close
Reported by: ibercom
patches:
  patch.diff uploaded by ibercom (License 6599)
........

Merged revisions 431617 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_odbc.c