From: Felipe Pena Date: Wed, 15 Jul 2009 02:35:43 +0000 (+0000) Subject: - MFH: Fixed bug #48913 (Too long error code strings in pdo_odbc driver) X-Git-Tag: php-5.2.11RC1~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7234163229086f7f5c0397c39cf9f65e8b3190f;p=php - MFH: Fixed bug #48913 (Too long error code strings in pdo_odbc driver) --- diff --git a/NEWS b/NEWS index a78c603261..fc5048b513 100644 --- 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 diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c index 3e8e215698..8e9bc4d062 100755 --- a/ext/pdo_odbc/odbc_stmt.c +++ b/ext/pdo_odbc/odbc_stmt.c @@ -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; } }