1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-27666 User variable not parsed as geometry variable in geometry function

Adding GEOMETRY type user variables.
This commit is contained in:
Alexander Barkov
2023-12-27 18:57:49 +04:00
parent caad34df54
commit fa3171df08
23 changed files with 510 additions and 119 deletions

View File

@@ -79,9 +79,9 @@ static int user_variables_fill(THD *thd, TABLE_LIST *tables, COND *cond)
else
return 1;
const LEX_CSTRING *tmp= var->unsigned_flag ?
&unsigned_result_types[var->type] :
&result_types[var->type];
const LEX_CSTRING *tmp= var->type_handler()->is_unsigned() ?
&unsigned_result_types[var->type_handler()->result_type()] :
&result_types[var->type_handler()->result_type()];
field[2]->store(tmp->str, tmp->length, system_charset_info);
if (var->charset())