Skip to Content.
Sympa Menu

freetds - RE: [freetds] Raiserror

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Raiserror
  • Date: Wed, 3 Dec 2003 11:03:01 -0000

Freddy,

TDS_DONE and DONE_INPROC have a short int (status) followed by a short int
(current command) followed by long int (rowcount)

We currently ignore the "current command" token
I think current command might be set to 0xf6 meaning RAISERROR ?

can you confirm this ?

Bill

> -----Original Message-----
> From: ZIGLIO Frediano [SMTP:Frediano.Ziglio AT vodafone.com]
> Sent: 03 December 2003 11:01
> To: freetds AT lists.ibiblio.org
> Subject: [freetds] Raiserror
>
> Some notes about this strange statements.
> Does is exists a counterpart for Sybase ?
> When a RAISERROR is issued server return a TDS_DONE/TDS_DONEINPROC token
> with error setted. However it's not a syntax error, only a user raised
> error... Strangely SQLExecute returns SQL_SUCCESS_WITH_INFO raising an
> error and not SQL_ERROR (seem to ignore RAISERROR error...).
> Perhaps libTDS should detect statement type processing TDS_*DONE tokens
> and remove error flag on RAISERROR statements ??
>
> freddy77
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds




  • [freetds] Raiserror, ZIGLIO Frediano, 12/03/2003
    • <Possible follow-up(s)>
    • RE: [freetds] Raiserror, Thompson, Bill D (London), 12/03/2003

Archive powered by MHonArc 2.6.24.

Top of Page