func_odbc: Fix fixed size buffers fix (r414968).
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 3 Jun 2014 07:36:42 +0000 (07:36 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 3 Jun 2014 07:36:42 +0000 (07:36 +0000)
commit795af210a38697b6ca5a0ebf00882f89b9b109a1
tree5769e7400ed07b97c82af8bdcf27af5878572daf
parent962b78bca19ec8caa8b60efdf792f1bb44aff21a
func_odbc: Fix fixed size buffers fix (r414968).

The change that removed the fixed size buffers in odbc-related code --
removing arbitrary column width limits -- was incomplete. This change
adds: no segfault on writesql without insertsql and return value checks
after strdup.

While I was in the vicinity I cleaned up the linefeeds in the odbc
function descriptions, moved some code for clarity, removed some blobs
and noted (but didn't fix) that the 'odbc write ... exec' CLI command
doesn't behave as the dialplan equivalent when insertsql= is used.

ASTERISK-23582 #close
Review: https://reviewboard.asterisk.org/r/3579/
........

Merged revisions 414997 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

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

Merged revisions 414999 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_odbc.c