Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

[2009-11-24 12:45 UTC] kristoff dot picard at ingres dot com

Same problem with 5.3.1
Tested on Linux with unixODBC and Ingres
Simple testcase:
------
$dsn='mydsn';
$conn=odbc_connect($dsn,'','');
$rc=odbc_autocommit($conn,FALSE);
echo "return set odbc_autocommit false: ".$rc. "\n";
$rc=odbc_autocommit($conn);
echo "return get odbc_autocommit: ".$rc. "\n";
-----
Output is as follows:
return set odbc_autocommit false: 1
return get odbc_autocommit: 1
While with 5.2.11 it is:
return set odbc_autocommit false: 1
return get odbc_autocommit: 0
ODBC trace shows that in 5.3.x SQLSetConnectOption() isn't called when passing FALSE as second parameter, but SQLGetConnectOption.
When passing TRUE SQLSetConnectOption() is called as expetced.