# File lib/dbi/sql.rb, line 25 def as_int(str) return nil if str.nil? if str == "" then nil else str.to_i end end