--- parser3/src/main/pa_sql_driver_manager.C 2001/10/29 13:04:46 1.45 +++ parser3/src/main/pa_sql_driver_manager.C 2001/10/31 14:58:10 1.48 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_sql_driver_manager.C,v 1.45 2001/10/29 13:04:46 paf Exp $ + $Id: pa_sql_driver_manager.C,v 1.48 2001/10/31 14:58:10 paf Exp $ */ #include "pa_sql_driver_manager.h" @@ -41,8 +41,11 @@ public: and from there... #2 propagate_exception() */ virtual void _throw(const char *comment) { + String& protocol=*NEW String(pool()); + /// hiding passwords and addresses from accidental show [imagine user forgot @exception] + protocol << furl.mid(0, furl.pos(":")) << "://****"; e=Exception(0, 0, - &furl, + &protocol, comment); longjmp(mark, 1); @@ -121,7 +124,7 @@ SQL_Connection& SQL_Driver_manager::get_ "connection string must start with protocol://"); // NOTE: not THROW, but PTHROW // make global_url C-string on global pool - request_url_cstr=request_url.cstr(String::UL_AS_IS); + request_url_cstr=request_url.cstr(); char *global_url_cstr=(char *)malloc(strlen(request_url_cstr)+1); strcpy(global_url_cstr, request_url_cstr); // make global_url string on global pool