diff --git a/json_utility.go b/json_utility.go index ad486d7..4c47b69 100644 --- a/json_utility.go +++ b/json_utility.go @@ -1,7 +1,7 @@ package webutility import ( - "fmt" + //"fmt" "net/http" "encoding/json" "errors" @@ -160,6 +160,7 @@ func InitTables(db *ora.Ses, project string) error { // fetchJSON returns a byte slice of JSON configuration file from TABLES_CONFIG table. // Returns an error if it fails. func fetchJSON(db *ora.Ses, project string) ([]byte, error) { + db.SetCfg(db.Cfg().SetClob(ora.S)) stmt, err := db.Prep(`SELECT JSON_CLOB FROM TABLES_CONFIG WHERE PROJEKAT` + EqualQuotes(project), ora.S) defer stmt.Close() if err != nil { @@ -176,7 +177,7 @@ func fetchJSON(db *ora.Ses, project string) ([]byte, error) { data = rset.Row[0].(string) } - fmt.Println(data) + //fmt.Println(data) return []byte(data), nil }