这是C++ Builder 5 的bug吗?(放分,放分)

fish_and_flyingbird 2003-10-15 10:04:43
我用TADOQuery控件对一个数据表进行SQL语句查询,但发现了一个问题:
当SQL语句执行结果为空集时,发现不能关闭ADOQuery控件。一关闭,就提示“BOF或EOF有一个为空,或当前记录被删除,所进行的操作需要一条记录!”。
这是为什么?请大侠们帮帮小弟,这个问题有的急!

我的代码是:
AnsiString strSQL="select * from mytable ";
...
if(ADOQuery1->Active==true)
ADOQuery1->Active=false;
ADOQuery1->SQL->Clear();
ADOQuery1->SQL->Add(strSQL);
ADOQuery1->Active=true;
...
ADOQuery1->Acive=false;
若数据表中没有记录时,执行这段代码在第二条ADOQuery1->Acive=false;语句时就会报错,提示信息就如上面我说的一样。
还有一点就是这个问题在C++ Builder 6中就不存在。
可小弟我由于一些原因必须用C++ Builder 5来做软件,所以希望各位能指点指点。
先谢了。





...全文
39 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
佣工7001 2003-10-16
  • 打赏
  • 举报
回复
没办法,bcb的bug多了一点^&^
耙子 2003-10-16
  • 打赏
  • 举报
回复
www.borland.com 上面就有
  • 打赏
  • 举报
回复
我在www.borland.com怎么没找到那两个补丁呢?
我用google搜索,倒是找到了delphi 5的两个ADO补丁。
不过我好像用不起来(我没有装Delphi)。
希望哪位老兄能再帮小弟一把,给个详细一点的下载地址。
  • 打赏
  • 举报
回复
那到哪里去下这两个补丁喃?
huangjuliang 2003-10-15
  • 打赏
  • 举报
回复
是的,这是ADO的Bug
打一下补丁就可以了!
耙子 2003-10-15
  • 打赏
  • 举报
回复
这是BCB 5的ADO的一个BUG,需要安装2个补丁。
  • 打赏
  • 举报
回复
上面有个笔误:
提示信息中应该是“ BOF或EOF有一个为真”,而不是“ BOF或EOF有一个为空”。
Beta Build Eight Notes There is a known issue where unselecting certain product features will cause cross platform development problems. We're working on it, but in the meantime we recommend installing all product features. There is a startup error reported for C++Builder-only installs. C++Builder Beta Testers should install the full RAD Studio. Before downloading this build you will need to have a product serial number, and you can request that via the serial number link on the Resources menu. If you've already created a serial number for a previous build you do not need to create another. You will need to re-register Beta Seven. You can use your existing serial number to do so. Please uninstall any previous Pulsar builds before installing this build. When prompted where to download the additional setup files please choose an empty folder. File Attachments: FmiForFpc.zip: Used for FireMonkey iOS development on the Mac. See the What's New doc for details. Look for the Installing FMI Sources on Your Mac section. Pulsar_Beta_8_Bug_Fixes.html: This lists the Quality Central bugs fixed since the release of Beta Seven. PulsarSamples.zip: Sample applications that demonstrate FireMonkey, DataSnap, and Databinding capabilities. The samples provided with the previous beta build will not work with build 16.0.4223.41907, so you'll need to download this zip file. What's New in Pulsar Beta 8.htm: Latest features and release notes. RenameFmxEnums.exe: A tool to scan through your project files and update them to reflect the changes in FireMonkey Enums in Beta 8. See the What's New doc for details. Select the link below to download the setup.exe file : Announcement:We are not intend to do harm to Embarcadero, just wanna share the product with delphi fans proudly, especially for those one dont have a good net! 声明:公开下载地址并不表明对Embarcadero的恶意,只是为分享delphi,特别是那些网络不好的同学。 Apply For Beta Serial Key(点此申请测试版密钥) https://beta.embarcadero.com/callout/apply.html?callid=%7bFA7D2619-0CFA-4AF5-9A55-E9C23DBC763D%7d
需要先安装Patch1。 Patch 2 for RAD Studio 10.4 now available This patch addresses a number of issues in RAD Studio 10.4, pertaining to Delphi Compiler, the RAD Studio IDE in general and the new LSP-based Code Insight in particular, plus C++ Builder Android exceptions and some debugger issues. The installation of this patch requires a prior installation of Patch #1 (separately available on GetIt and in the download portal). Installing this patch is recommended for all RAD Studio 10.4 customers. Note that this patch is fairly large to download (around 190 MB). The patch includes detailed installation instructions as part of the Readme. Please read the steps carefully (or the corresponding steps in this blog post), as the GetIt download does not install the patch automatically. You must follow the instructions in order to install. Just using GetIt is not enough. List of Customer Reported Issues Addressed in 10.4 Patch 2 RAD Studio 10.4 Patch #2 addresses the following issues reported by customer on Embarcadero Quality Portal (https://quality.embarcadero.com): RSP-29628 VCL Grids bug RSP-29560 [REGRESSION] Misalignment in TStringGrid, StretchDraw method in OnDrawCell RSP-29412 Compiler generates incorrect code for if-then RSP-29402 Delphi 10.4 TStringGrid.OnDrawCell bug RSP-29374 Wrong rect coords in TStringGridDrawCell, so image are drawn at wrong position RSP-29347 [DelphiLSP] IDE Crashes when view form as text is selected and running LSP server RSP-29310 Internal error L891 when linking because of complex types based on records with class var RSP-29299 CODEGEN bug in managed fields initialization, associated with new management operators. RSP-29271 [DelphiLSP] Code Insight adds unneeded () when changing procedures/functions RSP-29256 Compiler generates wrong code for template function RSP-29227 Incorrect property value obtained from the record RSP-29226 Access violation with working code under 10.2 RSP-29218 compiling static library under Android error E4620 processing resource .fmx -2 raised RSP-29172 Access Violation when opening License Manager RSP-29142 GoTo statements not working RSP-29136 Dialog constantly pops up during debugging RSP-29129 iOS App simply crashes with a TWebBrowser on it. RSP-29127 Compiler internal error if you ignore the result of a function that returns a generic record RSP-29124 ICE E1812 RSP-28989 License Manager has access violation error when i click on Workstation Licenses RSP-28887 Space does not finish code completion RSP-28857 Default(T) generates bad code for managed record RSP-28821 [Regression] TStringGrid.OnDrawCell parameter Rect contains wrong values RSP-28808 Project options dialog page "Delphi Compiler" is not populated when opening the dialog RSP-28796 RVO for M-records: initialisation of local variables RSP-28761 [REGRESSION] E2154 Type 'T' needs finalization - not allowed in variant record RSP-28737 Compiler error when inlining new Bit Counting Standard Functions RSP-28735 Managed Records Causing Internal Compiler Error RSP-28717 Delphi Package fails to compile RSP-28701 Bind visually on TDBGRID kills the IDE RSP-28669 [BadCG] Value M-record parameters: improper AddRefRecord RSP-28659 RVO for M-records: assignment to local variables RSP-28616 [BadCG] Operator Assign should not allow non-default calling conventions RSP-28615 [BadCG] In the absence of Initialize, finalisation is not guaranteed for local variables RSP-28552 Poor code generation for local managed record variables RSP-28499 Options - Translation tools - Font - Corrupted? RSP-28476 LSP ErrorInsight in Structure Pane only shows one keystroke after editor RSP-28400 [BadCG] Operator Assign is not always invoked for fields RSP-28372 [Regression] Bad codegen in function returning generic type RSP-27268 C++ Builder 10.3.3 Android Exceptions RSP-27251 Internal error when trying to inline with optimization on RSP-24079 Package version is broken RSP-23403 Build for linux 64 error RSP-23024 Record helper class constructor gives senseless compiler warning RSP-22318 Pointer type check missed when object field is a dynarray RSP-21554 Compiler generates incorrect code for parameterized record type RSP-21248 Const dynamic array unexpectedly contains uninitialized data RSP-20372 A generic "reference to function" will only match the first of several overloaded functions RSP-19714 Win32 compiler - Memory corruption with array helpers RSP-18241 *.c source files, added to C++ project, got added to DeploymentManager file list RSP-18148 AV in TList.Remove (64-bit compiler only)

1,178

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder 数据库及相关技术
社区管理员
  • 数据库及相关技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧