Commit b0a6d6322d2a7ca0ff3a04727817962b99d5373b
1 parent
5316eaa975
Exists in
master
and in
1 other branch
still can't read utf
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
json_utility.go
1 | 1 | package webutility |
2 | 2 | |
3 | 3 | import ( |
4 | - "fmt" | |
4 | + //"fmt" | |
5 | 5 | "net/http" |
6 | 6 | "encoding/json" |
7 | 7 | "errors" |
... | ... | @@ -160,6 +160,7 @@ func InitTables(db *ora.Ses, project string) error { |
160 | 160 | // fetchJSON returns a byte slice of JSON configuration file from TABLES_CONFIG table. |
161 | 161 | // Returns an error if it fails. |
162 | 162 | func fetchJSON(db *ora.Ses, project string) ([]byte, error) { |
163 | + db.SetCfg(db.Cfg().SetClob(ora.S)) | |
163 | 164 | stmt, err := db.Prep(`SELECT JSON_CLOB FROM TABLES_CONFIG WHERE PROJEKAT` + EqualQuotes(project), ora.S) |
164 | 165 | defer stmt.Close() |
165 | 166 | if err != nil { |
... | ... | @@ -176,7 +177,7 @@ func fetchJSON(db *ora.Ses, project string) ([]byte, error) { |
176 | 177 | data = rset.Row[0].(string) |
177 | 178 | } |
178 | 179 | |
179 | - fmt.Println(data) | |
180 | + //fmt.Println(data) | |
180 | 181 | return []byte(data), nil |
181 | 182 | } |
182 | 183 | ... | ... |