From 64c398bde1ac0332737980a66a780624ab069be2 Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Mon, 17 Aug 2009 15:13:45 +0000
Subject: Modified MSSQL driver to use mssql_get_last_message() for error
messages.
---
system/database/drivers/mssql/mssql_driver.php | 3 +--
user_guide/changelog.html | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index 4748d5683..97ac971bd 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -438,8 +438,7 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function _error_message()
{
- // Are errros even supported in MS SQL?
- return '';
+ return mssql_get_last_message();
}
// --------------------------------------------------------------------
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 52836056c..652aa27ad 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -76,6 +76,7 @@ SVN Revision:
Added escape_like_str() method for escaping strings to be used in LIKE conditions
Updated Active Record to utilize the new LIKE escaping mechanism.
Added reconnect() method to DB drivers to try to keep alive / reestablish a connection after a long idle.
+ Modified MSSQL driver to use mssql_get_last_message() for error messages.
Helpers
--
cgit v1.2.3-24-g4f1b