You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-21 13:40:58 +03:00
chore(codemanagement, ci): better coredumps handling, deps fixed
This commit is contained in:
22
utils/mariadb_charset/charset.cpp
Normal file
22
utils/mariadb_charset/charset.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "mariadb_charset/collation.h"
|
||||
#include "mariadb_my_sys.h"
|
||||
#include "mcs_datatype.h"
|
||||
|
||||
namespace datatypes
|
||||
{
|
||||
static inline CHARSET_INFO& get_charset_or_bin(int32_t charsetNumber)
|
||||
{
|
||||
CHARSET_INFO* cs = get_charset(charsetNumber, MYF(MY_WME));
|
||||
return cs ? *cs : my_charset_bin;
|
||||
}
|
||||
|
||||
Charset::Charset(uint32_t charsetNumber) : mCharset(&get_charset_or_bin(charsetNumber))
|
||||
{
|
||||
}
|
||||
|
||||
void Charset::setCharset(uint32_t charsetNumber)
|
||||
{
|
||||
mCharset = &get_charset_or_bin(charsetNumber);
|
||||
}
|
||||
|
||||
} // namespace datatypes
|
||||
Reference in New Issue
Block a user