mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
GIS issues fixed.
Failures on SUN Solaris. Buggy compiler there required some extra initialization for variables. Then the 02 optimization leads to bugs when values set through the pointer are not always taken into account. Finally, the (long long) / (long) crashes there, the explicit typeconverstion added. Failing innodb_plunin.innodb_gis.test fixed. per-file comments: mysql-test/suite/innodb_plugin/t/innodb_gis.test GIS issues fixed. sql/gcalc_slicescan.cc GIS issues fixed. sql/gcalc_tools.cc GIS issues fixed.
This commit is contained in:
parent
919f19110f
commit
56125a3bce
3 changed files with 7 additions and 1 deletions
|
|
@ -1353,6 +1353,10 @@ int Gcalc_operation_reducer::get_result(Gcalc_result_receiver *storage)
|
|||
GCALC_DBUG_ENTER("Gcalc_operation_reducer::get_result");
|
||||
*m_res_hook= NULL;
|
||||
|
||||
/* This is to workaround an old gcc's bug */
|
||||
if (m_res_hook == (Gcalc_dyn_list::Item **) &m_result)
|
||||
goto done;
|
||||
|
||||
while (m_result)
|
||||
{
|
||||
Gcalc_function::shape_type shape= m_result->type;
|
||||
|
|
@ -1403,6 +1407,7 @@ int Gcalc_operation_reducer::get_result(Gcalc_result_receiver *storage)
|
|||
}
|
||||
}
|
||||
|
||||
done:
|
||||
m_res_hook= (Gcalc_dyn_list::Item **)&m_result;
|
||||
storage->done();
|
||||
GCALC_DBUG_RETURN(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue