Re: defncopy query "order by" different for ASE

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Wed, 24 Aug 2016 06:25:47 +0000
John Kendall <[email protected]> wrote:

> 
> > On Aug 23, 2016, at 10:41 PM, James K. Lowden
> > <[email protected]> wrote:
> > 
> > On Wed, 24 Aug 2016 01:38:25 +0000
> > John Kendall <[email protected]> wrote:
> > 
> >> I figured it out.  Getting the right headers in the right order
> >> slowed me down. Here is my patch for consideration.
> > 
> > John, I think all you need is a call to the public function
> > 
> > 	const char *dbversion(void);
> > 
> 
> It looks like dbversion() returns the FreeTDS version number,
> currently "freetds v1.00.13." The patch is working for me, but if
> there is a better way... John

Sorry, late night.  The macro you want is DBTDS().  It returns an
integer for which symbolic constants are defined in sybdb.h. 

--jkl
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.