Changeset: f3ff66cf041a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f3ff66cf041a
Modified Files:
        clients/odbc/driver/SQLExecute.c
        clients/odbc/driver/SQLSetStmtAttr.c
Branch: Apr2012
Log Message:

ODBC: Add some more useful information to debug log.


diffs (42 lines):

diff --git a/clients/odbc/driver/SQLExecute.c b/clients/odbc/driver/SQLExecute.c
--- a/clients/odbc/driver/SQLExecute.c
+++ b/clients/odbc/driver/SQLExecute.c
@@ -149,8 +149,9 @@ ODBCInitResult(ODBCStmt *stmt)
        stmt->rowcount = (SQLULEN) mapi_rows_affected(hdl);
 
 #ifdef ODBCDEBUG
-       ODBCLOG("ODBCInitResult: querytype %s\n",
-               translatequerytype(stmt->querytype));
+       ODBCLOG("ODBCInitResult: querytype %s, rowcount %lu\n",
+               translatequerytype(stmt->querytype),
+               (unsigned long) stmt->rowcount);
 #endif
 
        switch (stmt->querytype) {
diff --git a/clients/odbc/driver/SQLSetStmtAttr.c 
b/clients/odbc/driver/SQLSetStmtAttr.c
--- a/clients/odbc/driver/SQLSetStmtAttr.c
+++ b/clients/odbc/driver/SQLSetStmtAttr.c
@@ -280,8 +280,9 @@ SQLSetStmtAttr(SQLHSTMT StatementHandle,
               SQLINTEGER StringLength)
 {
 #ifdef ODBCDEBUG
-       ODBCLOG("SQLSetStmtAttr " PTRFMT " %s\n",
-               PTRFMTCAST StatementHandle, translateStmtAttribute(Attribute));
+       ODBCLOG("SQLSetStmtAttr " PTRFMT " %s " PTRFMT "\n",
+               PTRFMTCAST StatementHandle, translateStmtAttribute(Attribute),
+               PTRFMTCAST ValuePtr);
 #endif
 
        if (!isValidStmt((ODBCStmt *) StatementHandle))
@@ -303,8 +304,9 @@ SQLSetStmtAttrW(SQLHSTMT StatementHandle
                SQLINTEGER StringLength)
 {
 #ifdef ODBCDEBUG
-       ODBCLOG("SQLSetStmtAttrW " PTRFMT " %s\n",
-               PTRFMTCAST StatementHandle, translateStmtAttribute(Attribute));
+       ODBCLOG("SQLSetStmtAttrW " PTRFMT " %s " PTRFMT "\n",
+               PTRFMTCAST StatementHandle, translateStmtAttribute(Attribute),
+               PTRFMTCAST ValuePtr);
 #endif
 
        if (!isValidStmt((ODBCStmt *) StatementHandle))
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to