diff --git a/README.md b/README.md index a8bb2085a..00bf85873 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ results.each do |row| # conveniently, row is a hash # the keys are the fields, as you'd expect # the values are pre-built ruby primitives mapped from their corresponding field types in MySQL - puts row["id"] # row["id"].class == Fixnum + puts row["id"] # row["id"].is_a? Integer if row["dne"] # non-existant hash entry is nil puts row["dne"] end