]> granicus.if.org Git - php/commitdiff
- MFH: Fixed bug #48913 (Too long error code strings in pdo_odbc driver)
authorFelipe Pena <felipe@php.net>
Wed, 15 Jul 2009 02:35:43 +0000 (02:35 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 15 Jul 2009 02:35:43 +0000 (02:35 +0000)
NEWS
ext/pdo_odbc/odbc_stmt.c

diff --git a/NEWS b/NEWS
index a78c60326139d089f9696914032e09879dadc7ef..fc5048b5133b0e5a8a04ef931ca2237477b2d892 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ PHP                                                                        NEWS
 - Fixed regression in cURL extension that prevented flush of data to output
   defined as a file handle. (Ilia)
 
+- Fixed bug #48913 (Too long error code strings in pdo_odbc driver).
+  (naf at altlinux dot ru, Felipe)
 - Fixed bug #48788 (RecursiveDirectoryIterator doesn't descend into symlinked
   directories). (Ilia)
 - Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on
index 3e8e215698dd56618022a52ac68f915d300d8dea..8e9bc4d062ce74ba77fc12359524ef7a3de24e35 100755 (executable)
@@ -568,7 +568,7 @@ static int odbc_stmt_set_param(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC)
                default:
                        strcpy(S->einfo.last_err_msg, "Unknown Attribute");
                        S->einfo.what = "setAttribute";
-                       strcpy(S->einfo.last_state, "IM0001");
+                       strcpy(S->einfo.last_state, "IM001");
                        return -1;
        }
 }
@@ -596,7 +596,7 @@ static int odbc_stmt_get_attr(pdo_stmt_t *stmt, long attr, zval *val TSRMLS_DC)
                default:
                        strcpy(S->einfo.last_err_msg, "Unknown Attribute");
                        S->einfo.what = "getAttribute";
-                       strcpy(S->einfo.last_state, "IM0001");
+                       strcpy(S->einfo.last_state, "IM001");
                        return -1;
        }
 }