Changeset 413
- Timestamp:
- 08/02/08 10:17:43 (4 months ago)
- Files:
-
- 1 modified
-
trunk/data/sqlite3/tempdir.diff (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/sqlite3/tempdir.diff
r412 r413 49 49 /* It's odd to simulate an io-error here, but really this is just 50 50 ** using the io-error infrastructure to test that SQLite handles this 51 @@ -2516,6 +2526,1 6@@51 @@ -2516,6 +2526,18 @@ 52 52 */ 53 53 SimulateIOError( return SQLITE_ERROR ); … … 55 55 +#ifdef __APPLE__ 56 56 + if (azDirs[1] == NULL) { 57 + NSPushAutoreleasePool(); 57 58 + cfstr = (CFStringRef) NSTemporaryDirectory(); 58 59 + maxsize = CFStringGetMaximumSizeForEncoding(CFStringGetLength(cfstr), kCFStringEncodingUTF8) + 1; … … 60 61 + CFStringGetCString(cfstr, cstr, maxsize, kCFStringEncodingUTF8); 61 62 + azDirs[1] = cstr; 63 + NSPopAutoreleasePool(); 62 64 + } 63 65 +#endif
