sqsh build fails with FreeTDS 1.0
Stuart Henderson <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
sqsh build is failing with newer FreeTDS. There's an easily fixed
CS_TDS_80 that can be replaced with CS_TDS_71, but when that's done
I run into this in src/dsp_conv.c:
/*
* Take the existing format and strip it down according to the
* type of date that we are processing and replace the ms
* field if it exists.
*/
#if defined(CS_BIGDATETIME_TYPE) && defined(CS_BIGTIME_TYPE)
if (dt_fmt->datatype == CS_BIGDATETIME_TYPE || dt_fmt->datatype == CS_BIGTIME_TYPE)
fmt = dsp_datetime_strip( dt_fmt->datatype, conv_fmt, (int) dr.datesecfrac );
else
#endif
fmt = dsp_datetime_strip( dt_fmt->datatype, conv_fmt, (int) dr.datemsecond );
- CS_BIGDATETIME_TYPE etc are now defined, but the structure
doesn't include datesecfrac:
dsp_conv.c: In function 'dsp_datetime_conv':
dsp_conv.c:665: error: 'CS_DATEREC' has no member named 'datesecfrac'
Any suggestions for a better fix than just #if 0'ing it out?
Thanks.