mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 21:55:33 +02:00
Bug #1043845 st_distance() results are incorrect depending on variable order.
Autointersections of an object were treated as nodes, so the wrong result. per-file comments: mysql-test/r/gis.result Bug #1043845 st_distance() results are incorrect depending on variable order. test result updated. mysql-test/t/gis.test Bug #1043845 st_distance() results are incorrect depending on variable order. test case added. sql/item.cc small fix to make compilers happy. sql/item_geofunc.cc Bug #1043845 st_distance() results are incorrect depending on variable order. Skip intersection points when calculate distance.
This commit is contained in:
parent
51e14492e9
commit
589c62fefe
4 changed files with 42 additions and 2 deletions
|
|
@ -8858,7 +8858,7 @@ bool Item_type_holder::join_types(THD *thd, Item *item)
|
|||
item->max_length, item->decimals));
|
||||
fld_type= Field::field_type_merge(fld_type, get_real_type(item));
|
||||
{
|
||||
int item_decimals= item->decimals;
|
||||
uint item_decimals= item->decimals;
|
||||
/* fix variable decimals which always is NOT_FIXED_DEC */
|
||||
if (Field::result_merge_type(fld_type) == INT_RESULT)
|
||||
item_decimals= 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue