mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Merge work:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql
This commit is contained in:
commit
357167f2be
1 changed files with 4 additions and 3 deletions
|
@ -63,9 +63,10 @@ static uint num_from_csname(CS_ID **cs, const char *name)
|
|||
static char *name_from_csnum(CS_ID **cs, uint number)
|
||||
{
|
||||
CS_ID **c;
|
||||
for (c = cs; *c; ++c)
|
||||
if ((*c)->number == number)
|
||||
return (*c)->name;
|
||||
if(cs)
|
||||
for (c = cs; *c; ++c)
|
||||
if ((*c)->number == number)
|
||||
return (*c)->name;
|
||||
return "?"; /* this mimics find_type() */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue