Package: simpledb
Version: 1.5-1
Severity: normal
Tags: patch

When building 'simpledb' on amd64/unstable,
I get the following error:

g++ -fPIC -g -c LongColumn.cpp
LongColumn.cpp: In member function 'virtual void 
SimpleDB::LongColumn::bind(void*, int)':
LongColumn.cpp:31: error: cannot convert 'SQLINTEGER*' to 'SQLLEN*' for 
argument '6' to 'SQLRETURN SQLBindCol(void*, SQLUSMALLINT, SQLSMALLINT, void*, 
SQLLEN, SQLLEN*)'
make[1]: *** [LongColumn.o] Error 1
make[1]: Leaving directory `/simpledb-1.5'
make: *** [build-stamp] Error 2

With the attached patch 'simpledb' can be compiled on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/simpledb-1.5/Column.h ./Column.h
--- ../tmp-orig/simpledb-1.5/Column.h   2006-01-05 23:59:30.000000000 +0000
+++ ./Column.h  2006-03-22 19:32:32.000000000 +0000
@@ -100,7 +100,7 @@
   
     /** The lengthOrIndex variable to be sent to the SQLBindCol function.
      */
-    SQLINTEGER lengthOrIndex;
+    SQLLEN lengthOrIndex;
 
     /** Indicates weather this column has been bound to a query.
      */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to