Merge branch 'zachmu/sys_tables' of github.com:dolthub/dolt into zachmu/sys_tables

This commit is contained in:
Zach Musgrave
2025-06-18 15:14:05 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1051,7 +1051,7 @@ func (db Database) tableInsensitive(ctx *sql.Context, root doltdb.RootValue, tab
}
tableListKey := root.TableListHash()
// TODO: refactor to make caching logic more obvious, cache and then retrieve
// TODO: why would tableListKey ever be zero?
if tableListKey != 0 {

View File

@@ -261,14 +261,14 @@ func (c *SessionCache) CacheTableChecks(key doltdb.DataCacheKey, checks []sql.Ch
c.checks[key] = checks
}
// GetTableNameMap returns the cached names of tables in a given root, keyed by their lower-case name, to their
// GetTableNameMap returns the cached names of tables in a given root, keyed by their lower-case name, to their
// case-sensitive name
func (c *SessionCache) GetTableNameMap(key uint64) (map[string]string, bool) {
tables, ok := c.tableMaps[key]
return tables, ok
}
// CacheTableNameMap caches the names of tables in a given root, keyed by their lower-case name, to their
// CacheTableNameMap caches the names of tables in a given root, keyed by their lower-case name, to their
// case-sensitive name
func (c *SessionCache) CacheTableNameMap(key uint64, tables map[string]string) {
c.mu.Lock()