Modified:
branches/guffert/driver/execute.c
Log:
account for SQLSetParam() mapping to SQLBindParameter() (length of SQL_SETPARAM_VALUE_MAX)
Modified: branches/guffert/driver/execute.c
===================================================================
--- branches/guffert/driver/execute.c 2007-11-14 19:01:01 UTC (rev 861)
+++ branches/guffert/driver/execute.c 2007-11-14 19:59:16 UTC (rev 862)
@@ -270,7 +270,8 @@
else
length= strlen(data);
- if (!aprec->octet_length_ptr && aprec->octet_length)
+ if (!aprec->octet_length_ptr && aprec->octet_length &&
+ aprec->octet_length != SQL_SETPARAM_VALUE_MAX)
length= min(length, aprec->octet_length);
}
else
| Thread |
|---|
| • Connector/ODBC 3.51 commit: r862 - branches/guffert/driver | jbalint | 14 Nov |