Commit 22367ba7 authored by Olivier Bertrand's avatar Olivier Bertrand

- Add or correct some tracing code

modified:
  storage/connect/odbconn.cpp
  storage/connect/tabodbc.cpp
parent 82f2be67
...@@ -340,7 +340,7 @@ PQRYRES ODBCColumns(PGLOBAL g, char *dsn, char *db, char *table, ...@@ -340,7 +340,7 @@ PQRYRES ODBCColumns(PGLOBAL g, char *dsn, char *db, char *table,
} // endif ocp } // endif ocp
if (trace) if (trace)
htrc("ODBCColumns: max=%d len=%d,%d,%d\n", htrc("ODBCColumns: max=%d len=%d,%d,%d,%d\n",
maxres, length[0], length[1], length[2], length[3]); maxres, length[0], length[1], length[2], length[3]);
/************************************************************************/ /************************************************************************/
......
...@@ -483,6 +483,9 @@ char *TDBODBC::MakeSQL(PGLOBAL g, bool cnt) ...@@ -483,6 +483,9 @@ char *TDBODBC::MakeSQL(PGLOBAL g, bool cnt)
if (To_CondFil) if (To_CondFil)
strcat(strcat(sql, " WHERE "), To_CondFil->Body); strcat(strcat(sql, " WHERE "), To_CondFil->Body);
if (trace)
htrc("sql: '%s'\n", sql);
return sql; return sql;
} // end of MakeSQL } // end of MakeSQL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment