mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/usr/local/home/marty/MySQL/test/mysql-5.0-ndb
This commit is contained in:
commit
dffefb3039
3 changed files with 28 additions and 4 deletions
|
@ -178,8 +178,11 @@ private:
|
|||
static Cmp cmpDecimalunsigned;
|
||||
//
|
||||
static Like likeChar;
|
||||
static Like likeBinary;
|
||||
static Like likeVarchar;
|
||||
static Like likeVarbinary;
|
||||
static Like likeLongvarchar;
|
||||
static Like likeLongvarbinary;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -132,7 +132,7 @@ void TransporterRegistry::set_mgm_handle(NdbMgmHandle h)
|
|||
}
|
||||
#endif
|
||||
DBUG_VOID_RETURN;
|
||||
};
|
||||
}
|
||||
|
||||
TransporterRegistry::~TransporterRegistry() {
|
||||
|
||||
|
|
|
@ -107,12 +107,12 @@ NdbSqlUtil::m_typeList[] = {
|
|||
{ // 16
|
||||
Type::Binary,
|
||||
cmpBinary,
|
||||
NULL
|
||||
likeBinary
|
||||
},
|
||||
{ // 17
|
||||
Type::Varbinary,
|
||||
cmpVarbinary,
|
||||
NULL
|
||||
likeVarbinary
|
||||
},
|
||||
{ // 18
|
||||
Type::Datetime,
|
||||
|
@ -147,7 +147,7 @@ NdbSqlUtil::m_typeList[] = {
|
|||
{ // 24
|
||||
Type::Longvarbinary,
|
||||
cmpLongvarbinary,
|
||||
NULL
|
||||
likeLongvarbinary
|
||||
},
|
||||
{ // 25
|
||||
Type::Time,
|
||||
|
@ -805,6 +805,13 @@ NdbSqlUtil::likeChar(const void* info, const void* p1, unsigned n1, const void*
|
|||
return k;
|
||||
}
|
||||
|
||||
int
|
||||
NdbSqlUtil::likeBinary(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2)
|
||||
{
|
||||
assert(info == 0);
|
||||
return likeChar(&my_charset_bin, p1, n1, p2, n2);
|
||||
}
|
||||
|
||||
int
|
||||
NdbSqlUtil::likeVarchar(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2)
|
||||
{
|
||||
|
@ -825,6 +832,13 @@ NdbSqlUtil::likeVarchar(const void* info, const void* p1, unsigned n1, const voi
|
|||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
NdbSqlUtil::likeVarbinary(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2)
|
||||
{
|
||||
assert(info == 0);
|
||||
return likeVarchar(&my_charset_bin, p1, n1, p2, n2);
|
||||
}
|
||||
|
||||
int
|
||||
NdbSqlUtil::likeLongvarchar(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2)
|
||||
{
|
||||
|
@ -845,6 +859,13 @@ NdbSqlUtil::likeLongvarchar(const void* info, const void* p1, unsigned n1, const
|
|||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
NdbSqlUtil::likeLongvarbinary(const void* info, const void* p1, unsigned n1, const void* p2, unsigned n2)
|
||||
{
|
||||
assert(info == 0);
|
||||
return likeLongvarchar(&my_charset_bin, p1, n1, p2, n2);
|
||||
}
|
||||
|
||||
// check charset
|
||||
|
||||
bool
|
||||
|
|
Loading…
Add table
Reference in a new issue