[unixODBC-support] how to trace complete sql string

Nick Gorham nick.gorham at easysoft.com
Thu Nov 11 09:41:54 GMT 2004

Wang, Alan wrote:

>As I know, unixODBC can support the following parameters in [ODBC] section:
>Trace		=Yes
>Trace File	=/tmp/sql.log
>But normally, the /tmp/sql.log can't record complete SQL string, and too long SQL string 
>will be truncated!  
>If I want to get complete SQL string, how can I avoid the SQL truncation occur?


Edit DriverManager/drivermanager.h and alter the line

#define LOG_MESSAGE_LEN     128

To a larger number, build and it should do what you need.

Nick Gorham
Easysoft Limited

More information about the unixODBC-support mailing list