Re: [PATCH] SYBUINT<n> support
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAHt6W4dPcsgq7tqSP35EDxGi+N-2xk+ZSuB0X1BNGYqfG-z93w@mail.gmail.com> |
2012/12/31 Ian Lister <[email protected]>: > Hi, > > I was running into a problem due to FreeTDS not supporting Sybase's unsigned integer types (SYBUINT1/2/4/8). It was manifested as cs_convert failing to convert other types (such as SYBNUMERIC) to those unsigned types, and reporting: > > cs_convert: cslib user api layer: external error: Conversion between 108 and -1 datatypes is not supported > > I have attached a patch that addresses the issue for me, in the hope that it might be useful for others. I tried to make it fairly complete in the areas of the code that I touched, but I was only following my nose so have quite likely overlooked other parts of the code (including test cases) that are also lacking SYBUINTn support. YMMV etc. > > Ian > I integrated your patch. You can find changes at http://gitorious.org/freetds/freetds/commits/master. For the moment you have to use --enable-developing to get it compiled. Frediano