I Can't Get SYBTEXT Full Data On SQL SERVER
PJH87 opened this issue · 1 comments
PJH87 commented
if (pcol->type != SYBCHAR && pcol->type != SYBTEXT && pcol->type != SYBIMAGE)
pcol->size = dbwillconvert(pcol->type, SYBCHAR);
//Allocate memory in the current pcol struct for a buffer
if ((pcol->buffer = calloc(1, pcol->size + 1)) == NULL)
return [self executionFailure:completion];
//Bind column name
erc = dbbind(connection, c, NTBSTRINGBIND, pcol->size + 1, (BYTE*)pcol->buffer);
if (erc == FAIL)
return [self executionFailure:completion];
//Bind column status
erc = dbnullbind(connection, c, &pcol->status);
if (erc == FAIL)
return [self executionFailure:completion];
I think SYBTEXT's size convert to SYBCHAR's size...
martinrybak commented
Hi there, please try out the types
branch. This issue should be fixed.