Make sure options is present
This commit is contained in:
parent
51d4a74264
commit
a47bc15e64
|
@ -702,6 +702,7 @@ DataSource.prototype.discoverSchemasSync = function (owner, tableOrView, options
|
|||
});
|
||||
|
||||
// Add current tableOrView to the visited tables
|
||||
options = options || {};
|
||||
options.visited = options.visited || {};
|
||||
var schemaKey = columns[0].owner + '.' + tableOrView;
|
||||
if (!options.visited.hasOwnProperty(schemaKey)) {
|
||||
|
|
Loading…
Reference in New Issue