Skip to content

Commit

Permalink
Add patch supplied on rt68958 for OCIServerAttach errors
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.perl.org/modules/dbd-oracle/trunk@14889 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information
mjevans committed Jun 21, 2011
1 parent 18bc63b commit 06dbd05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
=head1 Changes in DBD-Oracle 1.29_1 (svn rev NNNNN)
**************************** NOTE: ora_db_shutdown/ora_dv_startup/StrictlyType/DiscardString not documented

Added patch supplied on rt68958 to trap OCIServerAttach errors by Martin J. Evans
Added ora_db_shutdown and ora_db_startup private functions by Steffen Goeldner
Fixed up the POD based on DBD::Pg by John Scoles
Revoved oparse_lng as it is obsolete by John Scoles
Removed oparse_lang as it is obsolete by John Scoles
Added installation notes for MAC Snow Leopard by Martin J. Evans
pod review rephrasing, fixing typos and spelling mistakes up to "Placeholder Binding Attributes" by Martin J. Evans
Add /etc to the search paths for tnsnames.ora (rt67942) by Martin J. Evans, Jay Senseman
Expand Down
11 changes: 11 additions & 0 deletions dbdimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,17 @@ dbd_db_login6(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *uid, char *pwd, S

OCIHandleAlloc_ok(imp_dbh->envhp, &imp_dbh->svchp, OCI_HTYPE_SVCCTX, status);
OCIServerAttach_log_stat(imp_dbh, dbname,OCI_DEFAULT, status);
if (status != OCI_SUCCESS) {
oci_error(dbh, imp_dbh->errhp, status, "OCIServerAttach");
OCIHandleFree_log_stat(imp_dbh->seshp, OCI_HTYPE_SESSION,status);
OCIHandleFree_log_stat(imp_dbh->srvhp, OCI_HTYPE_SERVER, status);
OCIHandleFree_log_stat(imp_dbh->errhp, OCI_HTYPE_ERROR, status);
OCIHandleFree_log_stat(imp_dbh->svchp, OCI_HTYPE_SVCCTX, status);
if (forced_new_environment)
OCIHandleFree_log_stat(imp_dbh->envhp, OCI_HTYPE_ENV, status);
return 0;
}


OCIAttrSet_log_stat( imp_dbh->svchp, OCI_HTYPE_SVCCTX, imp_dbh->srvhp,
(ub4) 0, OCI_ATTR_SERVER, imp_dbh->errhp, status);
Expand Down

0 comments on commit 06dbd05

Please sign in to comment.