Page 1 of 1

dbExpress driver for MS SQL Server2.57 in delphi2006 bug

Posted: Fri 16 Dec 2005 08:21
by masks
select isnull(datanamenum,1) as datanamenum from mrecno
Data table is empty why datanamenum =5231964 .
This worth should be equal to 1


Delphi7 have no problem

Posted: Fri 16 Dec 2005 16:07
by Ikar
Send us please complete small sample. We will check it before releasing DbxSda for Delphi 2006.

demo

Posted: Wed 21 Dec 2005 06:10
by masks
To Ikar
you Email_add?

Posted: Wed 21 Dec 2005 09:55
by Ikar
dbxsda*cralb*com

This bug repair have no?

Posted: Fri 23 Dec 2005 05:45
by masks1
I already ba this bug de demo Email to you.

Posted: Mon 26 Dec 2005 10:48
by Ikar
We reproduced the problem. It is dbExpress bug. We have adjusted our code to
avoid it. Please note: if table is empty (RecordCount = 0) getting Field.AsString has no sense.

The bug

Posted: Tue 27 Dec 2005 01:10
by masks
to:Ikar
I am register consumer for std , I already under plant but that BUG still exist .Please help me

Posted: Tue 27 Dec 2005 10:07
by Ikar
For what reasons you try to get data from empty (RecordCount = 0) dataset?

help me

Posted: Wed 28 Dec 2005 03:04
by masks
I come in China, use de is B/ S framework. DbExpress take charge of sql execute and return Thereinto have many requirements are empty value or zero value. select isnull (datanamenum, one) as datanamenum from mrecno this is very simple example

I use delphi7 translate and edit have no discover corllab Groupware have problem.
but I be used for delphi2006 then discover this' key problem,

I use delphi2006
ConnectionName = ' MSSQLConnection'
DriverName = ' MSSQL'
GetDriverFunc = ' getSQLDriverMSSQL'
LibraryName = ' dbxmss30. dll' have no bring forth problem.


I hope Core Lab Team Can help I settle this' problem.

Posted: Thu 29 Dec 2005 10:18
by Ikar
We will add this behavior for compatibility reasons. The functionality will be included in the next build. Please note however that it is highly recommended to avoid such practice. There is little sense in reading nonexisting rows. The code you use may not work in other versions of Delphi, for example, in Delphi 2005. We recommend to check quantity of rows in returned dataset.

Thank you

Posted: Thu 29 Dec 2005 14:23
by masks
Thank you ^_^