Skip to Content.
Sympa Menu

freetds - Re: [freetds] trigger failes, mssql_query returns true

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <james.k.lowden AT alliancebernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] trigger failes, mssql_query returns true
  • Date: Tue, 8 Aug 2006 10:13:40 -0400

> From: Thorsten Marx
> Sent: Tuesday, August 08, 2006 2:11 AM
>
> MS SQL Server 2000 on Windows Server 2003 SuSE Enterprise Server
> 9 with PHP 5.1.2, FreeTDS 0.64 and Apache 2.2.0
>
> I have a delete - trigger in SQL Server. If the trigger faild, the
> PHP function mssql_query() returns "true"! PHP 5.1.2 with XAMPP on
> Windows with enabled MS SQL support returns "false", this was
> correct.
>
> Can you help me?

I doubt I can help you directly, because you have a PHP question, not a
FreeTDS one. (The problem is probably that FreeTDS differs somehow from
Microsoft's db-lib implementation, but we don't have enough
information.)

If you want to try to track it down, look at (or ask on a PHP list) how
PHP uses db-lib. I can tell you that the db-lib function dbsqlexec()
returns SUCCEED most of the time, even if a trigger fails. A db-lib
application learns about errors via a callback to the message handler
(dbmsghandle).

HTH.

--jkl

-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.




Archive powered by MHonArc 2.6.24.

Top of Page