aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqsh/datetime.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-23 13:05:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-23 13:05:01 +0000
commit553aa269b3f6eff0ac983abb6ee528763c8cb91e (patch)
tree57e424488c79c24775048b0581d256b84006091e /main/sqsh/datetime.patch
parent78836b041c49dfc8220ab3c074cdd3e49d4a34b8 (diff)
downloadaports-553aa269b3f6eff0ac983abb6ee528763c8cb91e.tar.bz2
aports-553aa269b3f6eff0ac983abb6ee528763c8cb91e.tar.xz
main/sqsh: fix build against freetds-1.00
Diffstat (limited to 'main/sqsh/datetime.patch')
-rw-r--r--main/sqsh/datetime.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/sqsh/datetime.patch b/main/sqsh/datetime.patch
new file mode 100644
index 0000000000..2a02504c59
--- /dev/null
+++ b/main/sqsh/datetime.patch
@@ -0,0 +1,16 @@
+diff --git a/src/dsp_conv.c b/src/dsp_conv.c
+index 6c6878c..e141b99 100644
+--- a/src/dsp_conv.c
++++ b/src/dsp_conv.c
+@@ -660,11 +660,6 @@ CS_RETCODE dsp_datetime_conv( ctx, dt_fmt, dt, buf, len, type )
+ * 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 );
+
+ /*