diff --git a/examples/std/json.go b/examples/std/json.go index 300a5f1bd2..85e228344e 100644 --- a/examples/std/json.go +++ b/examples/std/json.go @@ -120,11 +120,12 @@ func JSONInsertRead() error { if err = rows.Scan(&achievement); err != nil { return err } - fmt.Println(clickhouse_tests.ToJson(event)) + fmt.Println(clickhouse_tests.ToJson(achievement)) rows = conn.QueryRow("SELECT event.assignee.Repositories FROM example") var repositories any if err = rows.Scan(&repositories); err != nil { return err } + fmt.Println(clickhouse_tests.ToJson(repositories)) return nil }