mssql-error-fix.patch

来自「Typo3, 开源里边最强大的」· PATCH 代码 · 共 28 行

PATCH
28
字号
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 + =
减小字号Ctrl + -
显示快捷键?