Trasformato r4unique in e4 unique e azzerato l'errore di code_base
git-svn-id: svn://10.65.10.50/trunk@1577 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f62fed19dc
commit
6147deb1d5
@ -432,8 +432,11 @@ int DB_rewrite(int handle)
|
||||
u4delay_sec();
|
||||
#endif
|
||||
rt=DB_unlock(handle);
|
||||
if (rt == r4unique)
|
||||
if (rt == e4unique)
|
||||
{
|
||||
DB_get_error();
|
||||
fatal_box("Errore : chiave duplicata nell' indice %d", dbdata[handle]->rec_num + 1);
|
||||
}
|
||||
return (rt);
|
||||
}
|
||||
|
||||
@ -463,13 +466,14 @@ int DB_add(int handle)
|
||||
u4delay_sec();
|
||||
#endif
|
||||
}
|
||||
if (rt == r4unique)
|
||||
if (rt == e4unique)
|
||||
{
|
||||
DB_get_error();
|
||||
if (data->rec_num > 0)
|
||||
fatal_box("Errore : chiave duplicata nell' indice %d", data->rec_num + 1);
|
||||
else
|
||||
rt = _isreinsert;
|
||||
}
|
||||
}
|
||||
DB_unlock(handle);
|
||||
return(rt);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user