Skip to content

Commit

Permalink
Merge pull request #8403 from dolthub/taylor/fix-docs
Browse files Browse the repository at this point in the history
Fix dolt_docs for doltgres
  • Loading branch information
tbantle22 authored Sep 30, 2024
2 parents 5b894af + ff1e816 commit 8aca26c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/libraries/doltcore/sqle/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,9 @@ func (db Database) checkForPgCatalogTable(ctx *sql.Context, tableName string) (s
// case-insensitive manner. The table is returned along with its case-sensitive matched name. An error is returned if
// no such table exists.
func (db Database) resolveUserTable(ctx *sql.Context, root doltdb.RootValue, tableName string) (doltdb.TableName, *doltdb.Table, bool, error) {
if resolve.UseSearchPath && db.schemaName == "" {
// dolt_docs table is branch-specific, not schema-specific for doltgres
isDoltDocs := tableName == doltdb.DocTableName
if resolve.UseSearchPath && db.schemaName == "" && !isDoltDocs {
return resolve.TableWithSearchPath(ctx, root, tableName)
} else {
return db.tableInsensitive(ctx, root, tableName)
Expand Down

0 comments on commit 8aca26c

Please sign in to comment.