Re: [sqlite] Re: Transaction Check

2007-07-29 Thread RaghavendraK 70574
Hi,

That would  be fatal risk, is there a way to notify the application, such a 
thing happened,so that application don;t add further data to the db.

regards
ragha

**
 This email and its attachments contain confidential information from HUAWEI, 
which is intended only for the person or entity whose address is listed above. 
Any use of the information contained herein in any way (including, but not 
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is prohibited. If you receive this 
e-mail in error, please notify the sender by phone or email immediately and 
delete it!
 
*

- Original Message -
From: Igor Tandetnik <[EMAIL PROTECTED]>
Date: Sunday, July 29, 2007 8:06 pm
Subject: [sqlite] Re: Transaction Check

> RaghavendraK 70574
> <[EMAIL PROTECTED]> wrote:
> > If the sqlite file is deleted at runtime and if there are any open
> > connections,can these connections detect and return error?
> 
> On Windows, you simply cannot delete a file that is open by 
> somebody 
> else. DeleteFile call returns an error.
> 
> On Linux, you can "delete" (technically, unlink) a file in this 
> situation, but it won't be really deleted until all handles on it 
> are 
> closed. So any already open connections will continue to work with 
> the 
> file.
> 
> Igor Tandetnik 
> 
> 
> 
> -
> To unsubscribe, send email to [EMAIL PROTECTED]
> 
> -
> 
> 

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] Re: Transaction Check

2007-07-29 Thread Igor Tandetnik

RaghavendraK 70574
<[EMAIL PROTECTED]> wrote:

If the sqlite file is deleted at runtime and if there are any open
connections,can these connections detect and return error?


On Windows, you simply cannot delete a file that is open by somebody 
else. DeleteFile call returns an error.


On Linux, you can "delete" (technically, unlink) a file in this 
situation, but it won't be really deleted until all handles on it are 
closed. So any already open connections will continue to work with the 
file.


Igor Tandetnik 



-
To unsubscribe, send email to [EMAIL PROTECTED]
-