Skip to content

Commit

Permalink
Merge pull request #8401 from dolthub/taylor/dolt-schemas
Browse files Browse the repository at this point in the history
Fix dolt_schemas for doltgres
  • Loading branch information
tbantle22 authored Sep 27, 2024
2 parents 7c8cb2e + ac51a28 commit 6a93611
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/libraries/doltcore/sqle/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,7 @@ 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) {
// TODO: dolt_schemas needs work to be compatible with multiple schemas
hasDoltPrefix := doltdb.HasDoltPrefix(tableName)
if resolve.UseSearchPath && db.schemaName == "" && !hasDoltPrefix {
if resolve.UseSearchPath && db.schemaName == "" {
return resolve.TableWithSearchPath(ctx, root, tableName)
} else {
return db.tableInsensitive(ctx, root, tableName)
Expand Down

0 comments on commit 6a93611

Please sign in to comment.