Merged revisions 47526 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r47526 | tilghman | 2006-11-12 23:46:18 -0600 (Sun, 12 Nov 2006) | 10 lines Merged revisions 47525 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r47525 | tilghman | 2006-11-12 23:45:11 -0600 (Sun, 12 Nov 2006) | 2 lines If the execute fails a second time, make sure that we don't pass back a stale handle ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47528 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
438ce2cd40
commit
4842de7af9
|
@ -108,6 +108,7 @@ SQLHSTMT ast_odbc_prepare_and_execute(struct odbc_obj *obj, SQLHSTMT (*prepare_c
|
|||
|
||||
ast_log(LOG_WARNING, "SQL Execute error %d! Attempting a reconnect...\n", res);
|
||||
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
|
||||
stmt = NULL;
|
||||
|
||||
obj->up = 0;
|
||||
/*
|
||||
|
|
Reference in New Issue