Skip to content

Commit

Permalink
fix: adapt to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NoyException committed Dec 23, 2024
1 parent 8e6c2ec commit a48ab95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pgserver/duck_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func (h *DuckHandler) executeQuery(ctx *sql.Context, query string, parsed tree.S
schema = types.OkResultSchema
iter = sql.RowsToRowIter(sql.NewRow(types.OkResult{}))
default:
rows, err = adapter.QueryCatalog(ctx, query)
rows, err = adapter.QueryCatalog(ctx, ConvertToSys(query))
if err != nil {
break
}
Expand Down
6 changes: 3 additions & 3 deletions pgserver/pg_catalog_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ var pgCatalogHandlers = map[string]PGCatalogHandler{
return h.handleCurrentSetting(query)
}
//if pgCatalogRegex.MatchString(sql) {
if isSpecialPgCatalog(query) {
return h.handlePgCatalog(query)
}
//if isSpecialPgCatalog(query) {
// return h.handlePgCatalog(query)
//}
return false, nil
},
},
Expand Down

0 comments on commit a48ab95

Please sign in to comment.