|
1 |
| -/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
| 1 | +/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
2 | 2 |
|
3 | 3 | This program is free software; you can redistribute it and/or modify
|
4 | 4 | it under the terms of the GNU General Public License as published by
|
@@ -2729,7 +2729,7 @@ bool change_password(THD *thd, const char *host, const char *user,
|
2729 | 2729 | }
|
2730 | 2730 | mysql_mutex_assert_owner(&acl_cache->lock);
|
2731 | 2731 | table->use_all_columns();
|
2732 |
| - DBUG_ASSERT(host != '\0'); |
| 2732 | + DBUG_ASSERT(host != 0); |
2733 | 2733 | table->field[MYSQL_USER_FIELD_HOST]->store(host, strlen(host),
|
2734 | 2734 | system_charset_info);
|
2735 | 2735 | table->field[MYSQL_USER_FIELD_USER]->store(user, strlen(user),
|
@@ -3166,7 +3166,7 @@ update_user_table(THD *thd, TABLE *table,
|
3166 | 3166 | if (!is_user_table_positioned)
|
3167 | 3167 | {
|
3168 | 3168 | table->use_all_columns();
|
3169 |
| - DBUG_ASSERT(host != '\0'); |
| 3169 | + DBUG_ASSERT(host != 0); |
3170 | 3170 | table->field[MYSQL_USER_FIELD_HOST]->store(host, (uint) strlen(host),
|
3171 | 3171 | system_charset_info);
|
3172 | 3172 | table->field[MYSQL_USER_FIELD_USER]->store(user, (uint) strlen(user),
|
@@ -3302,7 +3302,7 @@ static int replace_user_table(THD *thd, TABLE *table, LEX_USER *combo,
|
3302 | 3302 | goto end;
|
3303 | 3303 |
|
3304 | 3304 | table->use_all_columns();
|
3305 |
| - DBUG_ASSERT(combo->host.str != '\0'); |
| 3305 | + DBUG_ASSERT(combo->host.str != 0); |
3306 | 3306 | table->field[MYSQL_USER_FIELD_HOST]->store(combo->host.str,combo->host.length,
|
3307 | 3307 | system_charset_info);
|
3308 | 3308 | table->field[MYSQL_USER_FIELD_USER]->store(combo->user.str,combo->user.length,
|
@@ -3393,7 +3393,7 @@ static int replace_user_table(THD *thd, TABLE *table, LEX_USER *combo,
|
3393 | 3393 |
|
3394 | 3394 | old_row_exists = 0;
|
3395 | 3395 | restore_record(table,s->default_values);
|
3396 |
| - DBUG_ASSERT(combo->host.str != '\0'); |
| 3396 | + DBUG_ASSERT(combo->host.str != 0); |
3397 | 3397 | table->field[MYSQL_USER_FIELD_HOST]->store(combo->host.str,combo->host.length,
|
3398 | 3398 | system_charset_info);
|
3399 | 3399 | table->field[MYSQL_USER_FIELD_USER]->store(combo->user.str,combo->user.length,
|
|
0 commit comments