Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • M mariadb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • mariadb
  • Repository

Switch branch/tag
  • mariadb
  • mysql-test
  • r
  • cast.result
Find file BlameHistoryPermalink
  • tnurnberg@mysql.com/white.intern.koehntopp.de's avatar
    Bug#31990: MINUTE() and SECOND() return bogus results when used on a DATE · 5a5ed2a5
    tnurnberg@mysql.com/white.intern.koehntopp.de authored Nov 08, 2007
    HOUR(), MINUTE(), ... returned spurious results when used on a DATE-cast.
    This happened because DATE-cast object did not overload get_time() method
    in superclass Item. The default method was inappropriate here and
    misinterpreted the data.
    
    Patch adds missing method; get_time() on DATE-casts now returns SQL-NULL
    on NULL input, 0 otherwise. This coincides with the way DATE-columns
    behave.
    5a5ed2a5

Replace cast.result

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7