dbExpress driver for MS SQL Server2.57 in delphi2006 bug

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
masks

dbExpress driver for MS SQL Server2.57 in delphi2006 bug

Post by masks » Fri 16 Dec 2005 08:21

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

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 16 Dec 2005 16:07

Send us please complete small sample. We will check it before releasing DbxSda for Delphi 2006.

masks

demo

Post by masks » Wed 21 Dec 2005 06:10

To Ikar
you Email_add?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 21 Dec 2005 09:55

dbxsda*cralb*com

masks1

This bug repair have no?

Post by masks1 » Fri 23 Dec 2005 05:45

I already ba this bug de demo Email to you.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 26 Dec 2005 10:48

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.

masks

The bug

Post by masks » Tue 27 Dec 2005 01:10

to:Ikar
I am register consumer for std , I already under plant but that BUG still exist .Please help me

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 27 Dec 2005 10:07

For what reasons you try to get data from empty (RecordCount = 0) dataset?

masks

help me

Post by masks » Wed 28 Dec 2005 03:04

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.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 29 Dec 2005 10:18

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.

masks

Thank you

Post by masks » Thu 29 Dec 2005 14:23

Thank you ^_^

Post Reply