# File lib/dbd/Mysql.rb, line 139
139:         def self.parse(obj)
140:             obj = super
141:             return obj unless obj
142: 
143:             case obj.class
144:             when ::Date
145:                 return obj
146:             when ::String
147:                 return ::Date.strptime(obj, "%Y-%m-%d")
148:             else
149:                 return ::Date.parse(obj.to_s)   if obj.respond_to? :to_s
150:                 return ::Date.parse(obj.to_str) if obj.respond_to? :to_str
151:                 return obj
152:             end
153:         end