Improved connection error handling.
Just returning a boolean is too limiting. Using expection instead to easily pass on error message.
This commit is contained in:
parent
646b18ebeb
commit
a88af1ac11
5 changed files with 41 additions and 41 deletions
|
|
@ -50,7 +50,7 @@ namespace Pgsql {
|
|||
return connect(params.toUtf8().data());
|
||||
}
|
||||
|
||||
bool connect(const char *const * keywords, const char* const * values, int expand_dbname);
|
||||
void connect(const char *const * keywords, const char* const * values, int expand_dbname);
|
||||
bool connectStart(const char *params);
|
||||
bool connectStart(const std::string ¶ms)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue