ibatis.net datetime and dynamic sql -
how can test if property of type datetime contains value on dynamic sql statement ibatis.net mapping file follow, not work
<select id="select" resultmap ="congeresult" parameterclass="conge"> select * conge <dynamic prepend="where"> <isgreaterthan property="startdate" comparevalue="01/01/0001 00:00:00"> start_date >= #startdate# </isgreaterthan> </dynamic> </select> thanks in advance.
try specifying date/time value in iso 8601 format http://en.wikipedia.org/wiki/iso_8601. parsers correctly parse string representation. value parsed if type:
comparevalue="0001-01-01 00:00:00"
Comments
Post a Comment