freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: Trapping mssql raiserror statements in PHP4 via FreeTDS
- From: "Kaeptn Weltall" <rl AT w4u.com>
- To: freetds AT franklin.oit.unc.edu
- Subject: Re: Trapping mssql raiserror statements in PHP4 via FreeTDS
- Date: Wed, 8 May 2002 11:28:26 -0400
an error is considered having a severity between 12 and 16,
messages with severitys below are considered messages but
not errormessages; maybe therefor the 'track_error' setting
will not apply.
If you want to return from query execution at the 'raiserror'
event anyway, turn up to severity 12 or more and catch the error
message with prepending @ to the sybase_query(...) command:
$sql = "exec myproc ...";
if( ! $myErrorString = @sybase_query($sql) ) {
YOUR ACTIONS ON ERROR;
}
cheers
robert
-
Trapping mssql raiserror statements in PHP4 via FreeTDS,
Mark Gruetzner, 05/08/2002
- <Possible follow-up(s)>
- Re: Trapping mssql raiserror statements in PHP4 via FreeTDS, Kaeptn Weltall, 05/08/2002
- Re: Trapping mssql raiserror statements in PHP4 via FreeTDS, Mark Gruetzner, 05/08/2002
Archive powered by MHonArc 2.6.24.