Skip to content

Commit 11e5dcf

Browse files
thiscodedhmlau
authored andcommitted
fix: fix discovering relations
Signed-off-by: Thomas Miliopoulos <github@thiscode.com>
1 parent 6cc9408 commit 11e5dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datasource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ DataSource.prototype.discoverSchemas = function(tableName, options, cb) {
17641764
if (followingRelations) {
17651765
// Handle foreign keys
17661766
const fks = {};
1767-
const foreignKeys = results[2] || [];
1767+
const foreignKeys = results[3] || [];
17681768
foreignKeys.forEach(function(fk) {
17691769
const fkInfo = {
17701770
keySeq: fk.keySeq,

0 commit comments

Comments
 (0)