crash on empty cursor

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jan 10 21:44:25 CST 2005


On 1/10/05 9:17 PM, "Olivier" <vidal_olivier at yahoo.fr> wrote:

>> Hmm,
>> 
>> The correct way NOW produce empty cursor for adding of records is
>> 
>> SELECT recId, string1, string2
>> FROM Table1
>> WHERE false
>> ORDER by string1
>> 
>> 
> 
> It is necessary to replace every " where recid=0 " by " where false "?
> (It would be necessary to correct doc)

RecID = 0 still will work.

Just WHERE false is the most effective


> In the presented case, I do not know early if the cursor will be empty.
> It is more practical to be able to add records that the cursor is empty
> OR not.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina-beta mailing list