Req #66221 [Opn->Wfx]: Change mssql_get_last_message() to support multiple

From: Date: Sat, 15 Oct 2016 23:17:21 +0000
Subject: Req #66221 [Opn->Wfx]: Change mssql_get_last_message() to support multiple
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204813@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66221&edit=1 ID: 66221 Updated by: kalle@php.net Reported by: scott at arciszewski dot me Summary: Change mssql_get_last_message() to support multiple -Status: Open +Status: Wont fix Type: Feature/Change Request Package: MSSQL related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: With MSSQL being removed from PHP as of PHP7.0, and ext/mssql not having a maintainer, I'm gonna close this report as a Won't fix, until maybe one day it will find a new maintainer. Alternatively you can use sqlsrv from Microsoft if you are on Windows, or pdo_dblib if you are on Unix. Previous Comments: ------------------------------------------------------------------------ [2013-12-02 19:02:15] scott at arciszewski dot me Description: ------------ Currently, you can use mssql_get_last_message() to get the last error message reported by MSSQL. However, if an INSERT fails, PHP only returns "The statement has been terminated" and truncates the reason why it failed. (Which is annoying if your DBA added columns that cannot accept NULL values.) Test script: --------------- I'd like to propose the addition of an error message queue that can be iterated for better debugging. For example: $sql = mssql_query($query); foreach(mssql_get_messages() as $error) { var_dump($error); } Expected result: ---------------- An array of error messages; optionally with timestamps ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66221&edit=1

« previous php.bugs (#204813) next »