]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bug 6061 - Fix ODBC storage of VM on PGSQL and MSSQL
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 11 Apr 2006 22:24:46 +0000 (22:24 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 11 Apr 2006 22:24:46 +0000 (22:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@19394 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 582595ad8fe0f74921772f30e2e02fa4240cfa41..b925a9746edb55dbe9c3f78c67363559123f109f 100644 (file)
@@ -1281,7 +1281,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
                len = fdlen; /* SQL_LEN_DATA_AT_EXEC(fdlen); */
                SQLBindParameter(stmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, strlen(dir), 0, (void *)dir, 0, NULL);
                SQLBindParameter(stmt, 2, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, strlen(msgnums), 0, (void *)msgnums, 0, NULL);
-               SQLBindParameter(stmt, 3, SQL_PARAM_INPUT, SQL_C_BINARY, SQL_BINARY, fdlen, 0, (void *)fdm, fdlen, &len);
+               SQLBindParameter(stmt, 3, SQL_PARAM_INPUT, SQL_C_BINARY, SQL_LONGVARBINARY, fdlen, 0, (void *)fdm, fdlen, &len);
                SQLBindParameter(stmt, 4, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, strlen(context), 0, (void *)context, 0, NULL);
                SQLBindParameter(stmt, 5, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, strlen(macrocontext), 0, (void *)macrocontext, 0, NULL);
                SQLBindParameter(stmt, 6, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, strlen(callerid), 0, (void *)callerid, 0, NULL);