• ramil/ram@mysql.com/ramil.myoffice.izhnet.ru's avatar
    Fix for bugs · e3c34c9c
    #27176: Assigning a string to an year column has unexpected results
    #26359: Strings becoming truncated and converted to numbers under STRICT mode
    
    Problems: 
    1. storing a string to an integer field we don't check 
       if strntoull10rnd() returns MY_ERRNO_EDOM error.
       Fix: check for MY_ERRNO_EDOM.
    2. storing a string to an year field we use my_strntol() function.
       Fix: use strntoull10rnd() instead.
    e3c34c9c
field.h 61.8 KB