Changeset: 5d3a42c1af00 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/5d3a42c1af00 Modified Files: clients/odbc/driver/SQLConnect.c Branch: default Log Message:
pass on mapi error when ODBC connect fails More useful than a generic 'couldn't connect' message. diffs (12 lines): diff --git a/clients/odbc/driver/SQLConnect.c b/clients/odbc/driver/SQLConnect.c --- a/clients/odbc/driver/SQLConnect.c +++ b/clients/odbc/driver/SQLConnect.c @@ -251,7 +251,7 @@ MNDBConnect(ODBCDbc *dbc, } if (mid == NULL || mapi_error(mid)) { /* Client unable to establish connection */ - addDbcError(dbc, "08001", NULL, 0); + addDbcError(dbc, "08001", mid ? mapi_error_str(mid) : NULL, 0); rc = SQL_ERROR; /* clean up */ if (mid) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org