Skip to content

Commit

Permalink
- Add or correct some tracing code
Browse files Browse the repository at this point in the history
modified:
  storage/connect/odbconn.cpp
  storage/connect/tabodbc.cpp
  • Loading branch information
Buggynours committed Feb 2, 2015
1 parent 82f2be6 commit 22367ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion storage/connect/odbconn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ PQRYRES ODBCColumns(PGLOBAL g, char *dsn, char *db, char *table,
} // endif ocp

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]);

/************************************************************************/
Expand Down
3 changes: 3 additions & 0 deletions storage/connect/tabodbc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ char *TDBODBC::MakeSQL(PGLOBAL g, bool cnt)

if (To_CondFil)
strcat(strcat(sql, " WHERE "), To_CondFil->Body);

if (trace)
htrc("sql: '%s'\n", sql);

return sql;
} // end of MakeSQL
Expand Down

0 comments on commit 22367ba

Please sign in to comment.