Sicong

Results 39 comments of Sicong

This is usually network related, 2 versions of ODBC installed is fine. Have you tried to use `isql` or `sqlcmd` to connect to the database from CentOS?

From pdo doc(https://www.php.net/manual/en/pdo.exec.php), exec returns number of rows affected by the statement. When you do `$pdo->exec('begin try begin ...`, SQL Server returns 0 rows affected. You could use `$count =...

> > so it'll not throw an error > > @absci thank you for getting into this issue quickly > > the main problem currently is an exception is not...

> @absci didn't you forget on this issue? It is quite critical as code usually relies on exception beiing thrown and fixing it is highly appreciated. Thanks in advance. Hi,...

The fix has been merged, so close this now.

I reviewed this issue, if `$pdo->query` contain multiple queries, all the warnings and errors will go to `errorInfo`. `getMessage()` is a function from PHP, the driver won't be able to...

> @absci I have the same issue. pdo_sqlsrv: 5.10.1 php: 8.1.20 > > May you provide some details about fixing? I remember adding `SET NOCOUNT ON` to the beginning of...

The PHP driver relies on ODBC driver to interact with the server. We tested this query in an ODBC C++ application and got the same behavior. So, it may not...