📄 mssql-error-fix.patch
字号:
diff -urw adodb.481/drivers/adodb-odbc.inc.php adodb/drivers/adodb-odbc.inc.php--- adodb.481/drivers/adodb-odbc.inc.php 2006-05-03 09:42:44.000000000 +0200+++ adodb/drivers/adodb-odbc.inc.php 2006-05-15 13:52:08.000000000 +0200@@ -513,6 +513,11 @@ $this->_errorMsg = odbc_errormsg(); $this->_errorCode = odbc_error(); }+ if($this->_errorCode == '00000') { // MS SQL Server sometimes returns this in combination with the FreeTDS+ $this->_errorMsg = ''; // driver and UnixODBC under Linux. This fixes the bogus "error"+ $this->_errorCode = 0; // <karsten@typo3.org>+ return true;+ } return false; } @@ -524,6 +529,11 @@ $this->_errorMsg = odbc_errormsg(); $this->_errorCode = odbc_error(); }+ if($this->_errorCode == '00000') { // MS SQL Server sometimes returns this in combination with the FreeTDS+ $this->_errorMsg = ''; // driver and UnixODBC under Linux. This fixes the bogus "error"+ $this->_errorCode = 0; // <karsten@typo3.org>+ return true;+ } return false; } } else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -