— ../tmp/shibboleth-2.0/odbc-store/odbc-store.cpp 2008-03-14 22:51:14.000000000 +0000+++ odbc-store/odbc-store.cpp 2008-04-02 15:28:17.000000000 +0100@@ -457,7 +457,7 @@}m_log.debug("SQLPrepare succeeded. SQL: %s", q.c_str());
SQLINTEGER b_ind = SQL_NTS;+ SQLLEN b_ind = SQL_NTS; sr = SQLBindParam(stmt, 1, SQL_C_CHAR, SQL_VARCHAR, 255, 0, const_cast<char*>(context), &b_ind); if (!SQL_SUCCEEDED(sr)) { m_log.error("SQLBindParam failed (context = %s)", context);@@ -562,7 +562,7 @@ return version; // nothing's changed, so just echo back the version
if (pvalue) {
SQLINTEGER len;+ SQLLEN len; SQLCHAR buf[LONGDATA_BUFLEN]; while ((sr=SQLGetData(stmt,pexpiration ? 3 : 2,SQL_C_CHAR,buf,sizeof(buf),&len)) != SQL_NO_DATA) { if (!SQL_SUCCEEDED(sr)) {@@ -656,7 +656,7 @@ } m_log.debug("SQLPrepare succeeded. SQL: %s", q.c_str());
SQLINTEGER b_ind = SQL_NTS;+ SQLLEN b_ind = SQL_NTS; if (value) { if (strcmp(table, TEXT_TABLE)==0) sr = SQLBindParam(stmt, 1, SQL_C_CHAR, SQL_LONGVARCHAR, strlen(value), 0, const_cast<char*>(value), &b_ind);
Debian 4.0
— ../tmp/shibboleth-2.0/odbc-store/odbc-store.cpp 2008-03-14 22:51:14.000000000 +0000
+++ odbc-store/odbc-store.cpp 2008-04-02 15:28:17.000000000 +0100
@@ -457,7 +457,7 @@
}
m_log.debug("SQLPrepare succeeded. SQL: %s", q.c_str());
SQLINTEGER b_ind = SQL_NTS;
+ SQLLEN b_ind = SQL_NTS;
sr = SQLBindParam(stmt, 1, SQL_C_CHAR, SQL_VARCHAR, 255, 0, const_cast<char*>(context), &b_ind);
if (!SQL_SUCCEEDED(sr)) {
m_log.error("SQLBindParam failed (context = %s)", context);
@@ -562,7 +562,7 @@
return version; // nothing's changed, so just echo back the version
if (pvalue) {
SQLINTEGER len;
+ SQLLEN len;
SQLCHAR buf[LONGDATA_BUFLEN];
while ((sr=SQLGetData(stmt,pexpiration ? 3 : 2,SQL_C_CHAR,buf,sizeof(buf),&len)) != SQL_NO_DATA) {
if (!SQL_SUCCEEDED(sr)) {
@@ -656,7 +656,7 @@
}
m_log.debug("SQLPrepare succeeded. SQL: %s", q.c_str());
SQLINTEGER b_ind = SQL_NTS;
+ SQLLEN b_ind = SQL_NTS;
if (value) {
if (strcmp(table, TEXT_TABLE)==0)
sr = SQLBindParam(stmt, 1, SQL_C_CHAR, SQL_LONGVARCHAR, strlen(value), 0, const_cast<char*>(value), &b_ind);