Big changes going on

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4emorxNbkqM2mZtVj3jQdv1ABpjPzX9a+BPd2gS9KbfKQ@mail.gmail.com>
Hi,

  It's time to get MARS into main git... well, more or less!

Beside there are still something to merge in order to reduce the code
I think to having a configure option to enable or disable mars so
every people can choose if using MARS or not at all.

Currently missing are
- timeout not handled (only for the session the is currently handling
the connection)
- some errors are misreported (mostly end of file instead of write
error when server close the connecion)
- there are currently a lot of memory copy compared to previous code.
Well.. we are however comparing network speed with memory copy
operation.

The last commit to master is to more tds_version from TDSSOCKET to
TDSCONNECTION. This cause a lot of differences, I used this script to
help me merging code:

for f in $(grep --include \*.[ch] -rl 'IS_TDS[4-9]' . ); do
        echo replacing $f
        perl -pi.orig -e
's/(IS_TDS[4-9][_0-9A-Z]*|TDS_MAJOR|TDS_MINOR)\(([^\)]*tds[^\)]*)\)/$1($2->conn)/g'
$f
done

As usual there is a mars branch at
https://gitorious.org/~freddy77/freetds/mars-freetds

Regards,
  Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.