1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-8718 - Obsolete sql_strmake() in favor of THD::strmake() and thd_strmake()

This commit is contained in:
Sergey Vojtovich
2015-11-18 22:55:17 +04:00
parent 464394bf47
commit 0746a07708
24 changed files with 105 additions and 111 deletions

View File

@ -84,18 +84,6 @@ void *sql_calloc(size_t size)
}
char *sql_strmake(const char *str, size_t len)
{
char *pos;
if ((pos= (char*) sql_alloc(len+1)))
{
memcpy(pos,str,len);
pos[len]=0;
}
return pos;
}
char *sql_strmake_with_convert(const char *str, size_t arg_length,
CHARSET_INFO *from_cs,
size_t max_res_length,