mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
ndb -
fix obscure error lookup
This commit is contained in:
parent
059b05cbbf
commit
0afd03f4fc
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ static const ConnectionError connectionError[] =
|
||||||
const char *lookupConnectionError(Uint32 err)
|
const char *lookupConnectionError(Uint32 err)
|
||||||
{
|
{
|
||||||
int i= 0;
|
int i= 0;
|
||||||
while ((Uint32)connectionError[i].err != err && (Uint32)connectionError[i].err != -1);
|
while ((Uint32)connectionError[i].err != err &&
|
||||||
|
(Uint32)connectionError[i].err != -1)
|
||||||
|
i++;
|
||||||
return connectionError[i].text;
|
return connectionError[i].text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue