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:
13
src/os.c
13
src/os.c
@@ -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.
|
||||
|
Reference in New Issue
Block a user