mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Fix compile warnings
This commit is contained in:
parent
3f8eaf7e87
commit
40d62823cd
1 changed files with 2 additions and 4 deletions
|
@ -160,8 +160,8 @@ cassandra_default_thrift_host_update(THD *thd,
|
||||||
|
|
||||||
if (new_host)
|
if (new_host)
|
||||||
{
|
{
|
||||||
strncpy(cassandra_default_host_buf, new_host, max_len);
|
strncpy(cassandra_default_host_buf, new_host, max_len-1);
|
||||||
cassandra_default_host_buf[max_len]= 0;
|
cassandra_default_host_buf[max_len-1]= 0;
|
||||||
cassandra_default_thrift_host= cassandra_default_host_buf;
|
cassandra_default_thrift_host= cassandra_default_host_buf;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -539,10 +539,8 @@ int ha_cassandra::check_table_options(ha_table_option_struct *options)
|
||||||
int ha_cassandra::create(const char *name, TABLE *table_arg,
|
int ha_cassandra::create(const char *name, TABLE *table_arg,
|
||||||
HA_CREATE_INFO *create_info)
|
HA_CREATE_INFO *create_info)
|
||||||
{
|
{
|
||||||
ha_table_option_struct *options= table_arg->s->option_struct;
|
|
||||||
int res;
|
int res;
|
||||||
DBUG_ENTER("ha_cassandra::create");
|
DBUG_ENTER("ha_cassandra::create");
|
||||||
DBUG_ASSERT(options);
|
|
||||||
|
|
||||||
Field **pfield= table_arg->s->field;
|
Field **pfield= table_arg->s->field;
|
||||||
if (!((*pfield)->flags & NOT_NULL_FLAG))
|
if (!((*pfield)->flags & NOT_NULL_FLAG))
|
||||||
|
|
Loading…
Add table
Reference in a new issue