Article View: borland.public.cppbuilder.database.ado
Article #4269Closing a dataset will get an error when there is no record selected.
From: xu ying
Date: Fri, 25 Jan 2002 05:59
Date: Fri, 25 Jan 2002 05:59
18 lines
1491 bytes
1491 bytes
os is Windows 2000 Server
Database is Oracle 8.1.7 (Client)
Codes:
DataSet->CommandText = "SELECT * FROM TABLENAME WHERE 1 = 2";
DataSet->Open(); //it ok. No recorde will be selected.
DataSet->Close(); //Cause an error
Error message:
Either BOF or EOF is True, or the current record has been deleted.
Requested operation requires a current record.
Additional note:
I tried the abovementioned codes on two machines. Both of them are installed Windows 2000 Server and Oracle 8.1.7 Client. BUT the abovementioned error was always encountered on one machine and was never encountered on the other.
Can anyone help me?
Thans in advance.
Technical Details
Message-ID:
<3c50f435_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,cc147b1ff873ae18,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-01-24 22:09:03 PST From: "xu ying" <s142857@21cn.com> Sender: "xu ying" <s142857@21cn.com> Reply-To: "xu ying" <s142857@21cn.com> Subject: Closing a dataset will get an error when there is no record selected. Newsgroups: borland.public.cppbuilder.database.ado X-User-Info: 203.93.240.102 203.93.240.102 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3c50f435_2@dnews> Date: 24 Jan 2002 21:59:17 -0800 X-Trace: dnews 1011938357 207.105.83.65 (24 Jan 2002 21:59:17 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews