From 5957693cb9b458ba575eaf1c6c08f0053eb54ad9 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 18 Jun 2012 10:49:38 +0200 Subject: [PATCH] oracle plugin: Report the "connect id" when OCILogon() fails. --- src/oracle.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/oracle.c b/src/oracle.c index 4c85e293..79725d70 100644 --- a/src/oracle.c +++ b/src/oracle.c @@ -702,7 +702,11 @@ static int o_read_database (o_database_t *db) /* {{{ */ (OraText *) db->connect_id, (ub4) strlen (db->connect_id)); if ((status != OCI_SUCCESS) && (status != OCI_SUCCESS_WITH_INFO)) { - o_report_error ("o_read_database", "OCILogon", oci_error); + char errfunc[256]; + + ssnprintf (errfunc, sizeof (errfunc), "OCILogon(\"%s\")", db->connect_id); + + o_report_error ("o_read_database", errfunc, oci_error); DEBUG ("oracle plugin: OCILogon (%s): db->oci_service_context = %p;", db->connect_id, db->oci_service_context); db->oci_service_context = NULL; -- 2.30.2