Skip to Content.
Sympa Menu

freetds - [freetds] small bug in dblibrary

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <ThompBil AT exchange.uk.ml.com>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] small bug in dblibrary
  • Date: Mon, 10 Feb 2003 18:49:25 -0000

Hi,

I've found a bugette in dblibrary. it's to do with when we clear down the
command buffer.

The sybase manual states:

DBNOAUTOFREE --This option causes the command buffer to be cleared only by
an explicit call to dbfreebuf.
When DBNOAUTOFREE is not set, after a call to dbsqlexec or dbsqlsend the
first call to either dbcmd or dbfcmd automatically clears the command buffer
before the new text is entered.

As things currently stand, if DBNOAUTOFREE is not set we clear down the
command buffer after the command is sent, not on the next call to
dbsqlsend().

the error handler in my application is attempting to print out the command
which has raised a server error, only to discover the command buffer was no
longer there...

here's my patch.


<<dbfreebuf.tar.gz>>
the changes affect sybdb.h (addition of new flag in DBPROCESS and a few
#defined values for that flag), and dblib.c (changes to dbcmd, dbsqlsend)

The versions in this tar file are the after images of the files from todays
snapshot with my changes applied...

regards,

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Bill Thompson
Securities Services Division
Merrill Lynch Europe

For very important information relating to this e-mail please click on this
link: http://www.ml.com/legal_info.htm


Attachment: dbfreebuf.tar.gz
Description: Binary data



  • [freetds] small bug in dblibrary, Thompson, Bill D (London), 02/10/2003

Archive powered by MHonArc 2.6.24.

Top of Page