Skip to content

Commit

Permalink
fix: fix discovering relations
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Miliopoulos <[email protected]>
  • Loading branch information
thiscode authored and dhmlau committed Dec 5, 2024
1 parent 6cc9408 commit 11e5dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ DataSource.prototype.discoverSchemas = function(tableName, options, cb) {
if (followingRelations) {
// Handle foreign keys
const fks = {};
const foreignKeys = results[2] || [];
const foreignKeys = results[3] || [];
foreignKeys.forEach(function(fk) {
const fkInfo = {
keySeq: fk.keySeq,
Expand Down

0 comments on commit 11e5dcf

Please sign in to comment.