Skip to content

Commit

Permalink
Merge pull request #147 from burner/master
Browse files Browse the repository at this point in the history
Fixes #146
  • Loading branch information
denizzzka authored Aug 10, 2020
2 parents 4b3a5bf + 0b99885 commit e2a3bef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"targetPath": "bin",
"dependencies": {
"derelict-pq": "~>4.0.0-alpha.2",
"vibe-d:data": "~>0.8.3-beta.1",
"vibe-d:data": ">=0.8.3-beta.1",
"money": "~>2.3.0"
},
"targetType": "sourceLibrary",
Expand Down
7 changes: 5 additions & 2 deletions src/dpq2/query.d
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,17 @@ void _integration_test( string connParam ) @trusted

{
bool exceptionFlag = false;
string errorMsg;

try conn.exec("SELECT 'abc'::text").getAnswer;
catch(ConnectionException e)
{
exceptionFlag = true;
errorMsg = e.msg;
assert(e.msg.length > 15); // error message check
}
finally
assert(exceptionFlag);
finally {
assert(exceptionFlag, errorMsg);
}
}
}

0 comments on commit e2a3bef

Please sign in to comment.