List:Commits« Previous MessageNext Message »
From:jwinstead Date:August 24 2007 11:38pm
Subject:Connector/ODBC 3.51 commit: r688 - branches/guffert/driver
View as plain text  
Modified:
   branches/guffert/driver/unicode.c
Log:
Fix check of allocation failure in SQLDescribeColW


Modified: branches/guffert/driver/unicode.c
===================================================================
--- branches/guffert/driver/unicode.c	2007-08-24 23:30:41 UTC (rev 687)
+++ branches/guffert/driver/unicode.c	2007-08-24 23:38:31 UTC (rev 688)
@@ -534,7 +534,7 @@
   {
     wvalue= sqlchar_as_sqlwchar(stmt->dbc->cxn_charset_info, value, &len,
                                 &errors);
-    if (!wvalue)
+    if (len == -1)
     {
       if (free_value)
         x_free(value);

Thread
Connector/ODBC 3.51 commit: r688 - branches/guffert/driverjwinstead25 Aug