title: How come I get cannot use type *sql.Row as type error when doing err == sql.ErrNoRows
body: <p>I was trying to follow the example in the answer given here:
  <a href="https://stackoverflow.com/questions/28034652/golang-how-to-check-for-empty-array-array-of-struct">Golang: How to check for empty array (array of struct)</a></p>
  
  <p>on how to check if a database return is empty</p>
  
  <p>So I have this:</p>
  
  <pre><code>err = db.QueryRow("SELECT FROM accounts WHERE steamid=?", steamid)
  switch {
          case err == sql.ErrNoRows:
          case err != nil:
          default:
                  //do stuff
  }
  </code></pre>
  
  <p>But I get the error:</p>
  
  <pre><code>cannot use db.QueryRow("SELECT FROM accounts WHERE steamid=?", steamid) (type *sql.Row) as type error in assignment:
      *sql.Row does not implement error (missing Error method)
  </code></pre>
  
  <p>Not sure why it worked in his example but not when I try to implement it. Thanks.</p>