/ Check-in [87017410]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:In os_unix.c, check if the ESTALE macro is defined before using it.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 87017410f2fc3f2ae15ef06714563ba9ad4350c7
User & Date: dan 2011-07-15 13:43:34
Context
2011-07-19
15:27
Increase the version number to 3.7.8. check-in: 4355bf29 user: drh tags: trunk
2011-07-15
13:43
In os_unix.c, check if the ESTALE macro is defined before using it. check-in: 87017410 user: dan tags: trunk
2011-07-13
18:31
Do not try to use STAT2 to refine the row estimate of a query that uses a unique or nearly-unique index. check-in: efffc49b user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

673
674
675
676
677
678
679

680

681
682
683
684
685
686
687
  case EIO:
  case EBADF:
  case EINVAL:
  case ENOTCONN:
  case ENODEV:
  case ENXIO:
  case ENOENT:

  case ESTALE:

  case ENOSYS:
    /* these should force the client to close the file and reconnect */
    
  default: 
    return sqliteIOErr;
  }
}







>

>







673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
  case EIO:
  case EBADF:
  case EINVAL:
  case ENOTCONN:
  case ENODEV:
  case ENXIO:
  case ENOENT:
#ifdef ESTALE                     /* ESTALE is not defined on Interix systems */
  case ESTALE:
#endif
  case ENOSYS:
    /* these should force the client to close the file and reconnect */
    
  default: 
    return sqliteIOErr;
  }
}