TMyQuery::InsertID

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
JohanW
Posts: 2
Joined: Sun 16 Sep 2007 14:04

TMyQuery::InsertID

Post by JohanW » Mon 25 Feb 2008 10:58

Hi!

I'm trying to get last inserted id using InsertID. I'm using the Borloand Builder 6.0 version.

A) In TCustomMyDataSet it seems to exist in the MyDac help files
B) In TMyQuery, under TCustomMyDataSet it does not seem to exist in the MyDac help files
C) When editing the source code in the development environment, I can write "myQuery->" to see all the properties/members of an object. InsertID is visible in that list.
D) When compiling, the compiler will not find the InsertID property.

It feels like the property has been added in the TCustomMyDataSet, but TMyQuery hasn't been recompiled using the updated base class? Just guessing..

regards
Johan Wallström
Elektronik Design AB

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 27 Feb 2008 15:37

We could not reproduce the problem.
Try using the following code:

Code: Select all

i = MyQuery1->InsertId;
TMyQuery::InsertID property is not specified in help actually. We have fixed this problem. This fix will be included in the next MyDAC build.

JohanW
Posts: 2
Joined: Sun 16 Sep 2007 14:04

Post by JohanW » Thu 28 Feb 2008 12:04

omg, I've misspelled it ^^

To my defense, I got confused when I didn't find it in the help files =D Thanks!!

cheers
Johan

Post Reply