fix: `isRelational` to return a boolean

Previously, `Connector.prototype.isRelational()` returned itself (a
function). This fix ensures that a boolean based on
`Connector.prototype.relational` is returned instead.

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
This commit is contained in:
Rifa Achrinza 2022-12-10 20:38:01 +08:00
parent 2ca54fa371
commit e6ce595a5e
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ Connector.prototype.relational = false;
* @returns {Boolean} true for relational DB
*/
Connector.prototype.isRelational = function() {
return this.isRelational ||
return this.relational ||
(this.getTypes().indexOf('rdbms') !== -1);
};