- MFH: Fixed bug #48913 (Too long error code strings in pdo_odbc driver)

This commit is contained in:
Felipe Pena 2009-07-15 02:32:43 +00:00
parent bffd08072c
commit 0225d5ef80

View File

@ -763,7 +763,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;
}
}
@ -795,7 +795,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;
}
}