Skip to Content.
Sympa Menu

freetds - RE: [freetds] SqlStates

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] SqlStates
  • Date: Mon, 31 Mar 2003 10:41:30 +0200

>
> zzzzz is a generic state Sybase sends to indiciate an error
> is generated
> by the server. Added a check to null it out as we can do
> better mapping
> native errors :)
>
> In token.c::tds_process_msg
>
> /* Read SQL state */
> ...
> msg_info.sql_state[len_sqlstate] = '\0';
> if (strcmp(msg_info.sql_state,"ZZZZZ") == 0) {
> free(msg_info.sql_state);
> msg_info.sql_state = NULL;
> }
>
> Have Fun!
> Peter

Accepted

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================



  • [freetds] SqlStates, Peter Deacon, 03/31/2003
    • <Possible follow-up(s)>
    • RE: [freetds] SqlStates, ZIGLIO Frediano, 03/31/2003

Archive powered by MHonArc 2.6.24.

Top of Page