From 74c1208920ac08aa2cfd577ee9ec6957ef2e8444 Mon Sep 17 00:00:00 2001 From: Taylor Bantle Date: Tue, 24 Sep 2024 14:12:51 -0700 Subject: [PATCH] Fix dolt_commit_diff_$ --- go/libraries/doltcore/sqle/dtables/commit_diff_table.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/libraries/doltcore/sqle/dtables/commit_diff_table.go b/go/libraries/doltcore/sqle/dtables/commit_diff_table.go index 7406ad64fa..886394a814 100644 --- a/go/libraries/doltcore/sqle/dtables/commit_diff_table.go +++ b/go/libraries/doltcore/sqle/dtables/commit_diff_table.go @@ -27,6 +27,7 @@ import ( "github.com/dolthub/dolt/go/libraries/doltcore/rowconv" "github.com/dolthub/dolt/go/libraries/doltcore/schema" "github.com/dolthub/dolt/go/libraries/doltcore/sqle/index" + "github.com/dolthub/dolt/go/libraries/doltcore/sqle/resolve" "github.com/dolthub/dolt/go/libraries/doltcore/sqle/sqlutil" "github.com/dolthub/dolt/go/store/types" ) @@ -60,12 +61,11 @@ var _ sql.StatisticsTable = (*CommitDiffTable)(nil) func NewCommitDiffTable(ctx *sql.Context, dbName, tblName string, ddb *doltdb.DoltDB, wRoot, sRoot doltdb.RootValue) (sql.Table, error) { diffTblName := doltdb.DoltCommitDiffTablePrefix + tblName - // TODO: schema - table, _, ok, err := doltdb.GetTableInsensitive(ctx, wRoot, doltdb.TableName{Name: tblName}) + _, table, tableExists, err := resolve.Table(ctx, wRoot, tblName) if err != nil { return nil, err } - if !ok { + if !tableExists { return nil, sql.ErrTableNotFound.New(diffTblName) }