title: QueryRow.Scan() doesn't read values properly?
body: <p>I have a row like this:
  <a href="https://i.stack.imgur.com/V5MC1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V5MC1.jpg" alt="enter image description here"></a></p>
  
  <p>Now I want to retrieve the <strong>checkin_time</strong> and <strong>checkout_time</strong>:
  <a href="https://i.stack.imgur.com/xsKwe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xsKwe.jpg" alt="enter image description here"></a></p>
  
  <p>OK I already got the correct query. Now run the query via Go code:</p>
  
  <pre><code>package controllers
  
  import (
      "absensi/config"
      "absensi/models"
      "encoding/json"
      "fmt"
      "net/http"
      "time"
  )
  
  func DoScanRow(w http.ResponseWriter, r *http.Request) {
      var tmpcheckintime string
      var tmpcheckouttime string
      var param models.CheckinParam
      var db = config.DBConnect()
      json.NewDecoder(r.Body).Decode(&amp;param)
  
      query1 := `SELECT checkin_time, checkout_time FROM oc_log WHERE userid=$1 AND userdate=$2;`
      row := db.QueryRow(query1, param.UserId, time.Now().Format("2006-01-02"))
      row.Scan(&amp;tmpcheckintime, &amp;tmpcheckouttime)
  
      fmt.Println("--&gt; id: " + param.UserId)
      fmt.Println("--&gt; date: " + time.Now().Format("2006-01-02"))
      fmt.Println("--&gt; checkin: ", tmpcheckouttime)
      fmt.Println("--&gt; checkout: ", tmpcheckouttime)
  
  }
  </code></pre>
  
  <p>If I send this payload via Postman:</p>
  
  <blockquote>
    <p>{ "id": "1234", "location": "(100,100)", "distance": 4 }</p>
  </blockquote>
  
  <p>I get this:</p>
  
  <blockquote>
    <p>--> id: 1234</p>
    
    <p>--> date: 2019-10-28</p>
    
    <p>--> checkin:</p>
    
    <p>--> checkout:</p>
  </blockquote>
  
  <p>Both checkin and checkout time are empty. Yet obviously only the checkout time is empty. What's wrong here?</p>