[Freeswitch-svn] [commit] r6102 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Wed Oct 31 14:47:03 EDT 2007
Author: anthm
Date: Wed Oct 31 14:47:03 2007
New Revision: 6102
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
Log:
change types for odbc
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Wed Oct 31 14:47:03 2007
@@ -1885,11 +1885,11 @@
char *ret = NULL;
SQLHSTMT stmt;
SQLCHAR name[1024];
- SQLINTEGER m = 0;
+ SQLLEN m = 0;
if (switch_odbc_handle_exec(profile->master_odbc, sql, &stmt) == SWITCH_ODBC_SUCCESS) {
SQLSMALLINT NameLength, DataType, DecimalDigits, Nullable;
- SQLUINTEGER ColumnSize;
+ SQLULEN ColumnSize;
SQLRowCount(stmt, &m);
if (m <= 0) {
@@ -1901,7 +1901,7 @@
}
SQLDescribeCol(stmt, 1, name, sizeof(name), &NameLength, &DataType, &ColumnSize, &DecimalDigits, &Nullable);
- SQLGetData(stmt, 1, SQL_C_CHAR, (SQLCHAR *)resbuf, (SQLINTEGER)len, NULL);
+ SQLGetData(stmt, 1, SQL_C_CHAR, (SQLCHAR *)resbuf, (SQLLEN)len, NULL);
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
ret = resbuf;
}
More information about the Freeswitch-svn
mailing list