Make sure options is present

This commit is contained in:
Raymond Feng 2013-06-11 14:56:16 -07:00
parent 51d4a74264
commit a47bc15e64
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {