1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Partial fix for ticket #96: Return SQLITE_MISUSE from sqlite_exec() if called

from a child process with an active transaction that was started in the parent. (CVS 675)

FossilOrigin-Name: 72a609ec6492e7d740b6e6184fa14a5e6b04a5dc
This commit is contained in:
drh
2002-07-13 17:23:21 +00:00
parent 289f6c2336
commit 70562cd342
7 changed files with 33 additions and 14 deletions

View File

@@ -579,6 +579,19 @@ int sqliteOsFileSize(OsFile *id, int *pSize){
#endif
}
/*
** Return the process ID for the current process. This
** only works under Unix. Under windows, a constant is returned.
*/
int sqliteOsProcessId(void){
#if OS_UNIX
return getpid();
#endif
#if OS_WIN
return 1;
#endif
}
/*
** Change the status of the lock on the file "id" to be a readlock.