SQLite

Check-in [3ee5d1a51d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add additional error check for disk full on Windows.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3ee5d1a51d6347858734b7b595771ae9cd2cc89d
User & Date: shaneh 2011-06-20 20:48:09.429
Context
2011-06-20
20:50
Fix a couple of compiler issues on Windows due to warning clean up. (check-in: 81e6f151d3 user: shaneh tags: trunk)
20:48
Add additional error check for disk full on Windows. (check-in: 3ee5d1a51d user: shaneh tags: trunk)
20:39
Fix documentation typos. No changes to code. (check-in: 3276f3f7c9 user: drh tags: trunk)
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to src/os_win.c.
874
875
876
877
878
879
880
881


882
883
884
885
886
887
888
874
875
876
877
878
879
880

881
882
883
884
885
886
887
888
889







-
+
+







    if( nRem>0 ){
      pFile->lastErrno = GetLastError();
      rc = 1;
    }
  }

  if( rc ){
    if( pFile->lastErrno==ERROR_HANDLE_DISK_FULL ){
    if(   ( pFile->lastErrno==ERROR_HANDLE_DISK_FULL )
       || ( pFile->lastErrno==ERROR_DISK_FULL )){
      return SQLITE_FULL;
    }
    return winLogError(SQLITE_IOERR_WRITE, "winWrite", pFile->zPath);
  }
  return SQLITE_OK;
}