openmamba logo
GNU/Linux distribution
distribution community wiki forum bugs events products
software   community wiki forum bugs events products
packages libpt-2.6.1-odbc-2.2.14.patch
      Pages: < 1 >  DOWNLOAD      
diff -Nru ptlib-2.6.1.orig/include/ptlib/unix/ptlib/contain.h ptlib-2.6.1/include/ptlib/unix/ptlib/contain.h
--- ptlib-2.6.1.orig/include/ptlib/unix/ptlib/contain.h	2009-03-18 04:43:45.000000000 +0100
+++ ptlib-2.6.1/include/ptlib/unix/ptlib/contain.h	2009-05-16 16:45:02.000000000 +0200
@@ -49,6 +49,8 @@
 
 #ifdef P_USE_INTEGER_BOOL
 typedef int BOOL;
+#else
+typedef bool BOOL;
 #endif
 
 ///////////////////////////////////////////
diff -Nru ptlib-2.6.1.orig/src/ptclib/podbc.cxx ptlib-2.6.1/src/ptclib/podbc.cxx
--- ptlib-2.6.1.orig/src/ptclib/podbc.cxx	2009-03-18 04:43:34.000000000 +0100
+++ ptlib-2.6.1/src/ptclib/podbc.cxx	2009-05-16 16:44:28.000000000 +0200
@@ -1524,7 +1524,7 @@
 PBoolean PODBCRecord::IsColumnUpdatable(PINDEX Column )
 {
 
-   SWORD colUpdate=0;
+   SQLINTEGER colUpdate=0;
    SQLColAttribute(m_hStmt,     // StatementHandle
         (SQLSMALLINT)(Column),  // ColumnNumber
         SQL_DESC_UPDATABLE,	// FieldIdentifier
@@ -1538,7 +1538,7 @@
 PBoolean PODBCRecord::IsColumnAutoIndex(PINDEX Column )
 {
 
-   SWORD colIndex=0;
+   SQLINTEGER colIndex=0;
    SQLColAttribute(m_hStmt,	// StatementHandle
         (SQLSMALLINT)(Column),  // ColumnNumber
         SQL_DESC_AUTO_UNIQUE_VALUE,  // FieldIdentifier
@@ -1551,7 +1551,7 @@
 
 unsigned int PODBCRecord::ColumnPrecision(PINDEX Column )
 {
-   SWORD coldigits=0;
+   SQLINTEGER coldigits=0;
    SQLColAttribute(m_hStmt,      // StatementHandle
         (SQLSMALLINT)(Column),   // ColumnNumber
         SQL_DESC_PRECISION,      // FieldIdentifier