Skip to content
  • Deepa Dixit's avatar
    f8ff8c13
    Bug#23280117: 5.7 BUG XXXXX TEST REPLACE NUMBER ROUND+GIS PRECISION DIFFERENCES · f8ff8c13
    Deepa Dixit authored
    
                  (CONTRIBUTION)
    
    Issue:
    ------
    MTR tests written to test GIS functions fail with a result content mismatch
    on some platforms due to difference in precision. These have been corrected
    using the mysqltest function --replace_regex till now.
    This requires a complex regular expression to replace the result with a lower
    precision.
    
    Fix:
    ----
    For ease of use, a new mysqltest command 'replace_numberic_round' has been
    introduced to round off numeric values.
    The usage is as follows:
    --replace_numberic_round <precision>
    where precision is the number of digits after the decimal that the result will
    be rounded off to. The precision can be any number between 0 to 16.
    
    Patch contributed by: Daniel Black
    Reviewed-by: default avatarPavan Naik <pavan.naik@oracle.com>
    Reviewed-by: default avatarSrikanth BR <srikanth.b.r@oracle.com>
    RB: 14633
    f8ff8c13
    Bug#23280117: 5.7 BUG XXXXX TEST REPLACE NUMBER ROUND+GIS PRECISION DIFFERENCES
    Deepa Dixit authored
    
                  (CONTRIBUTION)
    
    Issue:
    ------
    MTR tests written to test GIS functions fail with a result content mismatch
    on some platforms due to difference in precision. These have been corrected
    using the mysqltest function --replace_regex till now.
    This requires a complex regular expression to replace the result with a lower
    precision.
    
    Fix:
    ----
    For ease of use, a new mysqltest command 'replace_numberic_round' has been
    introduced to round off numeric values.
    The usage is as follows:
    --replace_numberic_round <precision>
    where precision is the number of digits after the decimal that the result will
    be rounded off to. The precision can be any number between 0 to 16.
    
    Patch contributed by: Daniel Black
    Reviewed-by: default avatarPavan Naik <pavan.naik@oracle.com>
    Reviewed-by: default avatarSrikanth BR <srikanth.b.r@oracle.com>
    RB: 14633
Loading