summaryrefslogtreecommitdiff
path: root/mysys/mf_brkhant.c
diff options
context:
space:
mode:
authorunknown <Kristofer.Pettersson@naruto.>2006-10-11 10:17:39 +0200
committerunknown <Kristofer.Pettersson@naruto.>2006-10-11 10:17:39 +0200
commitc247bf9dc3c370c70dc763dcf361c85ee20035fd (patch)
treec3c6295c052cfb8644b61ca97122dcd1ffdd43d0 /mysys/mf_brkhant.c
parent910fe3921e8ba8a4562d5e9d318769e16babb110 (diff)
downloadmariadb-git-c247bf9dc3c370c70dc763dcf361c85ee20035fd.tar.gz
BUG#21811 Odd casting with date + INTERVAL arithmetic
- Type casting was not consequent, thus when adding a DATE type with a WEEK interval the result tpe was DATETIME and not DATE as is the norm. - By changing the order of the date type enumerations the type casting bug is resolved. To comply with the new order the array interval_type_to_name needed to change accordingly. include/my_time.h: Changed enumeration order to make week interval appear in a more logical order. This affects type casting when a date is added to an interval. sql/time.cc: Moved string WEEK to match enumeration in interval_type
Diffstat (limited to 'mysys/mf_brkhant.c')
0 files changed, 0 insertions, 0 deletions