1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Make sure the unix backend returns SQLITE_FULL if write() fails with an

ENOSPC error code.

FossilOrigin-Name: 721e3c16b389a43f5d7c47a8fd0294473a39dad2
This commit is contained in:
drh
2011-04-15 12:36:10 +00:00
parent 5f2dfdbc23
commit a21b83ba3b
3 changed files with 8 additions and 8 deletions

View File

@@ -3090,7 +3090,7 @@ static int unixWrite(
SimulateDiskfullError(( wrote=0, amt=1 ));
if( amt>0 ){
if( wrote<0 ){
if( wrote<0 && pFile->lastErrno!=ENOSPC ){
/* lastErrno set by seekAndWrite */
return SQLITE_IOERR_WRITE;
}else{