good morning!!!!

Skip to content
Snippets Groups Projects
Commit a54cb1e0 authored by José Nieto's avatar José Nieto
Browse files

fix json.RawMessage test

parent 8292c3eb
Branches
Tags
No related merge requests found
...@@ -230,7 +230,7 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) { ...@@ -230,7 +230,7 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) {
StringArray StringArray `db:"string_array,stringarray"` StringArray StringArray `db:"string_array,stringarray"`
JSONBMap JSONBMap `db:"jsonb_map"` JSONBMap JSONBMap `db:"jsonb_map"`
RawJSONBMap json.RawMessage `db:"raw_jsonb_map"` RawJSONBMap *json.RawMessage `db:"raw_jsonb_map,omitempty"`
PGTypeInline `db:",inline"` PGTypeInline `db:",inline"`
...@@ -278,6 +278,7 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) { ...@@ -278,6 +278,7 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) {
integerArrayValue := Int64Array{1, 2, 3, 4} integerArrayValue := Int64Array{1, 2, 3, 4}
stringArrayValue := StringArray{"a", "b", "c"} stringArrayValue := StringArray{"a", "b", "c"}
jsonbMapValue := JSONBMap{"Hello": "World"} jsonbMapValue := JSONBMap{"Hello": "World"}
rawJSONBMap := json.RawMessage(`{"foo": "bar"}`)
testValue := "Hello world!" testValue := "Hello world!"
...@@ -333,7 +334,7 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) { ...@@ -333,7 +334,7 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) {
}, },
}, },
PGType{ PGType{
RawJSONBMap: json.RawMessage(`{"foo": "bar"}`), RawJSONBMap: &rawJSONBMap,
}, },
PGType{ PGType{
IntegerValue: integerValue, IntegerValue: integerValue,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment