Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Need help with SQL server stored procedure: msg#00175

db.tds.freetds

Subject: RE: Need help with SQL server stored procedure

On Sat, 2003-07-19 at 18:25, Staats, Frederick W wrote:
> I noticed that DBD::Sybase was broken with freetds 0.61. When I tracked
> down the problem in June it appeared to be due to a patch in the return
> codes from a different bug. Here is the email thread I had with the
> Michael
> Peppler the maintainer of Sybase::DBD. He was going to follow up on it
> but I don't know the current status. Included in the email is a patch
> to DBD::Sybase but if the CVS for freetds is working then someone also
> fixed on the freetds side.

Frederick's patch looks like this:

> if(failFlag || retcode == CS_FAIL || retcode == CS_CANCELED)
> return CS_CMD_FAIL;
>
> - /* FreeTDS added a result code CS_END_RESULTS */
> - /* Do the right thing with it Frederick Staats, 6/26/03 */
> - if(retcode == CS_END_RESULTS)
> - restype= CS_CMD_DONE;
> -
> imp_sth->lastResType = restype;

The Sybase libraries' version of ct_results(&restype) also return
CS_END_RESULTS when all the data has been fetched, but it sets the
restype to either CS_CMD_DONE or CS_CMD_FAIL in that situation. The
patch above is needed because FreeTDS sets the restype to some other
value for the final call to ct_results() - which may be a bug in
FreeTDS.

Michael


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation