 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
ronger xu Guest
|
Posted: Wed Jan 25, 2006 3:26 pm Post subject: delphi2006 clientdataset cannot return correct value. why? |
|
|
clientdataset connected to provider
clientdataset1.commandtext := 'select count(*) cnt from tablename';
clientdataset1.open;
showMessage(clientdataset1.fieldbyName('cnt').asString);
!!
it returns 0.
but there are 6000 records. in the table!
Why ?
thanks a lot.
|
|
| Back to top |
|
 |
Dan Miser Guest
|
Posted: Wed Jan 25, 2006 5:43 pm Post subject: Re: delphi2006 clientdataset cannot return correct value. wh |
|
|
Tied to a CoreLab MSSQL driver perhaps? Either way, double check the
precision of the returned count() from your DBMS. You may need to CAST this
to something like (32, for the time being. It's a FMTBCD bug that is being
looked at.
--
Dan Miser
http://www.distribucon.com
"ronger xu" <lirox (AT) msn (DOT) com> wrote
| Quote: | clientdataset connected to provider
clientdataset1.commandtext := 'select count(*) cnt from tablename';
clientdataset1.open;
showMessage(clientdataset1.fieldbyName('cnt').asString);
!!
it returns 0.
but there are 6000 records. in the table!
Why ?
thanks a lot.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|