fixed connection error handling for oracle dialect

This commit is contained in:
Helios 2015-07-13 12:04:40 +03:00
parent 0ce5f1b16f
commit 962d09de6d

View File

@ -74,8 +74,8 @@ assign(Client_Oracle.prototype, {
var client = this;
return new Promise(function (resolver, rejecter) {
client.driver.connect(client.connectionSettings, function (err, connection) {
Promise.promisifyAll(connection);
if (err) return rejecter(err);
Promise.promisifyAll(connection);
if (client.connectionSettings.prefetchRowCount) {
connection.setPrefetchRowCount(client.connectionSettings.prefetchRowCount);
}
@ -169,4 +169,4 @@ assign(Client_Oracle.prototype, {
});
module.exports = Client_Oracle;
module.exports = Client_Oracle;