freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Hal Snyder <hal AT vailsys.com>
- To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
- Subject: another dbbind patch
- Date: 30 Nov 2000 18:17:35 -0600
Again in using dbbind, setting varlen (the fourth argument) to zero is
supposed to be an indication that the programmer is sure the receiving
buffer is "big enough". In the case of conversion from datetime server
format to string client format, setting varlen to zero suppressed the
conversion. Here's a patch:
Index: src/tds/convert.c
===================================================================
RCS file: /Repository/freetds/src/tds/convert.c,v
retrieving revision 1.43
diff -r1.43 convert.c
498c498,499
< if (destlen<0) {
---
> if (destlen<=0) {
> destlen = 30;
500a502
>
539c541,542
< if (destlen<0) {
---
> if (destlen<=0) {
> destlen = 30;
- another dbbind patch, Hal Snyder, 11/30/2000
Archive powered by MHonArc 2.6.24.