Skip to content

Commit

Permalink
Merge pull request #69 from urviljoshi/connection-issue
Browse files Browse the repository at this point in the history
table results closed
  • Loading branch information
urviljoshi authored Aug 17, 2021
2 parents ab13241 + b35390f commit cc94503
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/repository/deliveryreportpersistence.bal
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public type DeliveryReportPersistence object {
log:printError("Error retreiving failed delivery from subID from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down
4 changes: 4 additions & 0 deletions src/repository/hubpersistenceimpl.bal
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public type HubPersistenceImpl object {
callbackParameter, secret, leaseSeconds, createdAt, createdBy, createdDTimes, updatedBy, updatedDTimes);
self.handleUpdate(returned, "insert new subs");
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down Expand Up @@ -86,6 +87,7 @@ public type HubPersistenceImpl object {
subscriptionResult = subscriptionDeletedDetails;
}
}
dbResult.close();
}

jdbc:Parameter id = {sqlType: jdbc:TYPE_VARCHAR, value: subscriptionResult.id};
Expand Down Expand Up @@ -170,6 +172,7 @@ public type HubPersistenceImpl object {
log:printError("Error retreiving subscription details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down Expand Up @@ -198,6 +201,7 @@ public type HubPersistenceImpl object {
log:printError("Error retreiving topic registration details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down
4 changes: 4 additions & 0 deletions src/repository/msgpersistence.bal
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public type MessagePersistenceImpl object {
log:printError("Error retreiving topic registration details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand All @@ -77,6 +78,7 @@ public type MessagePersistenceImpl object {
log:printError("Error retreiving topic registration details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down Expand Up @@ -122,6 +124,7 @@ public type MessagePersistenceImpl object {
log:printError("Error retreiving failed delivery from subID from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down Expand Up @@ -167,6 +170,7 @@ public type MessagePersistenceImpl object {
log:printError("Error retreiving unsend messaged from message store: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down
3 changes: 3 additions & 0 deletions src/repository/subscriptionoperations.bal
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public type SubsOperations object {
log:printError("Error retreiving topic registration details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down Expand Up @@ -55,6 +56,7 @@ public type SubsOperations object {
log:printError("Error retreiving topic registration details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down Expand Up @@ -84,6 +86,7 @@ public type SubsOperations object {
log:printError("Error retreiving topic registration details from the database: " + errCause);
}
}
dbResult.close();
} else {
string errCause = <string>dbResult.detail()?.message;
log:printError("Error retreiving data from the database: " + errCause);
Expand Down

0 comments on commit cc94503

Please sign in to comment.