mirror of
https://github.com/knex/knex.git
synced 2025-12-27 15:08:47 +00:00
fixed connection error handling for oracle dialect
This commit is contained in:
parent
0ce5f1b16f
commit
962d09de6d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user