[cpp-sp] 01/02: Fix variable sizes in the ODBC code
Scott Cantor
cantor.2 at osu.edu
Thu Dec 20 19:40:55 EST 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to annotated tag debian/2.0.dfsg1-2
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=65d5ccacd267249f8046a8fe0134431e6dcf4d74
commit 65d5ccacd267249f8046a8fe0134431e6dcf4d74
Author: Russ Allbery <rra at debian.org>
AuthorDate: Thu Jul 24 08:45:43 2008 -0700
Fix variable sizes in the ODBC code
* Apply upstream fix for variable sizes in the ODBC code. Fixes a
FTBFS on 64-bit platforms. (Closes: #492101)
---
debian/changelog | 7 +++++++
odbc-store/odbc-store.cpp | 10 +++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index bbec71f..1148298 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+shibboleth-sp2 (2.0.dfsg1-2) unstable; urgency=low
+
+ * Apply upstream fix for variable sizes in the ODBC code. Fixes a
+ FTBFS on 64-bit platforms. (Closes: #492101)
+
+ -- Russ Allbery <rra at debian.org> Thu, 24 Jul 2008 08:44:50 -0700
+
shibboleth-sp2 (2.0.dfsg1-1) unstable; urgency=low
[ Ferenc Wágner ]
diff --git a/odbc-store/odbc-store.cpp b/odbc-store/odbc-store.cpp
index f64f091..8bb7989 100644
--- a/odbc-store/odbc-store.cpp
+++ b/odbc-store/odbc-store.cpp
@@ -67,8 +67,8 @@ using namespace std;
/* table definitions
CREATE TABLE version (
- major tinyint NOT NULL,
- minor tinyint NOT NULL
+ major int NOT NULL,
+ minor int NOT NULL
)
CREATE TABLE strings (
@@ -457,7 +457,7 @@ bool ODBCStorageService::createRow(const char* table, const char* context, const
}
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 @@ int ODBCStorageService::readRow(
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 @@ int ODBCStorageService::updateRow(const char *table, const char* context, const
}
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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list