Skip to content

Commit

Permalink
Add pg_encoding_to_char function support
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunlol committed Dec 16, 2024
1 parent 64fc085 commit c2bbb12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"
)

const VERSION = "0.27.1"
const VERSION = "0.27.2"

func main() {
config := LoadConfig()
Expand Down
4 changes: 4 additions & 0 deletions src/query_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func TestHandleQuery(t *testing.T) {
"description": {"set_config"},
"values": {"hex"},
},
"SELECT pg_catalog.pg_encoding_to_char(6)": {
"description": {"pg_encoding_to_char"},
"values": {"UTF8"},
},
// PG system tables
"SELECT oid, typname AS typename FROM pg_type WHERE typname='geometry' OR typname='geography'": {
"description": {"oid", "typename"},
Expand Down
1 change: 1 addition & 0 deletions src/select_remapper_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var REMAPPED_CONSTANT_BY_PG_FUNCTION_NAME = map[string]string{
"pg_indexes_size": "0",
"pg_get_partkeydef": "",
"pg_tablespace_location": "",
"pg_encoding_to_char": "UTF8",
}

type SelectRemapperSelect struct {
Expand Down

0 comments on commit c2bbb12

Please sign in to comment.