--- convert.c.orig Tue Jan 30 18:17:56 2001 +++ convert.c Tue Jan 30 19:14:30 2001 @@ -304,22 +304,6 @@ } break; - /* Currently, data is SILENTLY TRUNCATED for BYTEA and character data - types if there is not enough room in cbValueMax because the driver - can't handle multiple calls to SQLGetData for these, yet. Most likely, - the buffer passed in will be big enough to handle the maximum limit of - postgres, anyway. - - LongVarBinary types are handled correctly above, observing truncation - and all that stuff since there is essentially no limit on the large - object used to store those. - */ - case PG_TYPE_BYTEA: /*// convert binary data to hex strings (i.e, 255 = "FF") */ - len = convert_pgbinary_to_char(value, rgbValueBindRow, cbValueMax); - - /***** THIS IS NOT PROPERLY IMPLEMENTED *****/ - break; - default: /* convert linefeeds to carriage-return/linefeed */ len = convert_linefeeds(value, tempBuf, sizeof(tempBuf)); @@ -1242,16 +1226,6 @@ } p[out] = '\0'; return p; -} - -/* !!! Need to implement this function !!! */ -int -convert_pgbinary_to_char(char *value, char *rgbValue, int cbValueMax) -{ - mylog("convert_pgbinary_to_char: value = '%s'\n", value); - - strncpy_null(rgbValue, value, cbValueMax); - return 0; } unsigned int