|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-10-15 23:17 UTC] kalle@php.net
-Status: Open
+Status: Wont fix
[2016-10-15 23:17 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 10:00:02 2025 UTC |
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