diff options
Diffstat (limited to 'src/interfaces/odbc/convert.c')
-rw-r--r-- | src/interfaces/odbc/convert.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaces/odbc/convert.c b/src/interfaces/odbc/convert.c index bad3f1a9114..22da73e0814 100644 --- a/src/interfaces/odbc/convert.c +++ b/src/interfaces/odbc/convert.c @@ -365,7 +365,12 @@ struct tm *tim; // truncate the data. // return COPY_RESULT_TRUNCATED; - *pcbValue = cbValueMax -1; + // LongVarBinary types do handle truncated multiple get calls + // through convert_lo(). + + if (pcbValue) + *pcbValue = cbValueMax -1; + return COPY_OK; } else { |