From 7ff1be8d26d60c2625b0fcb62c49503b44615980 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Fri, 9 Jan 2009 16:53:20 -0500 Subject: [PATCH] vxodbc: report "sql string to large" error with more detail. Doesn't really fix anything, but at least this tells us *why* it doesn't fix anything :) --- vxodbc/odbcapiw.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vxodbc/odbcapiw.cc b/vxodbc/odbcapiw.cc index ad9484d..00c4a4b 100644 --- a/vxodbc/odbcapiw.cc +++ b/vxodbc/odbcapiw.cc @@ -726,7 +726,9 @@ RETCODE SQL_API SQLNativeSqlW(HDBC hdbc, SQLLEN slen; SQLINTEGER buflen, olen; ConnectionClass *conn = (ConnectionClass *) hdbc; - mylog("Start\n"); + mylog("Start (%x, %p, %d, %p, %d, %p)\n", + hdbc, szSqlStrIn, cbSqlStrIn, + szSqlStr, cbSqlStrMax, pcbSqlStr); ENTER_CONN_CS(conn); CC_clear_error(conn); @@ -755,6 +757,8 @@ RETCODE SQL_API SQLNativeSqlW(HDBC hdbc, ConnectionClass *conn = (ConnectionClass *) hdbc; ret = SQL_SUCCESS_WITH_INFO; + mylog("Sql string too large: %d(%d) > %d\n", + szcount, olen, cbSqlStrMax); CC_set_error(conn, CONN_TRUNCATED, "Sql string too large", func); } -- 2.11.4.GIT