Test: /ext/odbc/tests/bug73448.phpt - Version 7.3.13        

Bug #73448 odbc_errormsg returns trash, always 513 bytes
Submitted: 2016-11-02 22:53:37 Modified: 2016-11-08 12:30:43
From: honza.hink Assigned: ab
Status: Closed Package: ODBC related
PHP Version: 7.0.12 OS: Windows 7, 8.1, Server 2012 R2

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ string(34) "/* empty batch is without error */"
002+ string(5) "ERRPS"
003+ string(26) " PSM compilation error. "
004+
002- string(5) "37000"
003- string(%d) "[Microsoft][%s][SQL Server]Could not find stored procedure 'xy'."
006+ string(5) "ERRPS"
007+ string(26) " PSM compilation error. "
008+
009+ string(44) "/* empty batch,error message is not empty */"
010+ string(5) "ERRPS"
011+ string(26) " PSM compilation error. "
012+
013+ string(59) "/* valid select with result */ select * from sys.sysobjects"
014+ string(5) "42S02"
015+ string(179) " Specified schema object was not found.
016+ at line 1, column 47 of null:
017+ /* valid select with result */ select * from sys.sysobjects
018+ ^"
006- string(5) "S0002"
007- string(%d) "[Microsoft][%s][SQL Server]Invalid object name 'zwiebelfleisch'."
021+ string(5) "42S02"
022+ string(177) " Specified schema object was not found.
023+ at line 1, column 46 of null:
024+ /* another erroneous query */ SELECT * FROM zwiebelfleisch
025+ ^"
026+
027+ string(59) "/* valid select with result */ select * from sys.sysobjects"
028+ string(5) "42S02"
029+ string(179) " Specified schema object was not found.
030+ at line 1, column 47 of null:
031+ /* valid select with result */ select * from sys.sysobjects
032+ ^"