main logo
Subject: Re: [dabo-dev] VFP cursors and data update
Author: Carl Karsten
Posted: 2006/12/30 14:38:40
 
View Entire Thread
New Search


Ed Leafe wrote:
> On Dec 30, 2006, at 1:20 PM, Carl Karsten wrote:
>
>> What I am talking about is using a standard SQL UPDATE command, and
>> then looking
>> at how many records were updated (which may not be standard) to
>> detect a
>> collision.
>
> Python in general doesn't work that way. Normally, exceptions are
> raised in response to failures, rather than some sort of return code.
> dCursorMixin raises several types of exceptions, depending on the
> situation:
>
> BeginningOfFileException
> ConnectionLostException
> DBNoAccessException
> DBQueryException
> EndOfFileException
> FieldNotFoundException
> NoRecordsException
> QueryException
>
> You write your code to handle these exceptions, or else they
> percolate back up to the UI, where they are displayed to the user by
> default.
>

Will NoRecordsException get raised if I do
UPDATE foo SET Fid='a' WHERE 0=1
?




 
©2006 Carl Karsten
<-- Prior Message New Search Next Message -->