Skip to content

Commit e953f0c

Browse files
committed
Example results instead of an otter
1 parent 689c602 commit e953f0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ results.each do |row|
104104
# conveniently, row is a hash
105105
# the keys are the fields, as you'd expect
106106
# the values are pre-built ruby primitives mapped from their corresponding field types in MySQL
107-
# Here's an otter: http://farm1.static.flickr.com/130/398077070_b8795d0ef3_b.jpg
107+
puts row["id"] # row["id"].class == Fixnum
108+
if row["dne"] # non-existant hash entry is nil
109+
puts row["dne"]
110+
end
108111
end
109112
```
110113

0 commit comments

Comments
 (0)