Delphi2 to Sybase 11 Index Problem / Bug

Delphi2 to Sybase 11 Index Problem / Bug

Post by Roman Vinni » Sat, 23 Nov 1996 04:00:00



This is the first time I have encounterd this Bug (BDE bug I think), and
here it is:
I'm using Delphi 2 C/S on win95 to connect to Sybase System 11 on NT
if you have a date at part of the key for a table, and the date column is
not the last item, then when you try to update that table from a grid (or
even Database Explorer), you get an error message saying
"Record/Key deleted" , on every record except the first record of every
set.

So for example if you have a key of client, adate, account, you will only
be able to edit the first record of each client

here is a code sample:
create the following 2 table using this code:

create table client1 (cli char(3) not null, vdate smalldatetime not null,
account char(5) not null, value float)

create table client2 (cli char(3) not null, account char(5) not null, vdate
smalldatetime not null, value float)

then create the following indexes using this code:

create unique unclustered index client1_ind on client1(cli, vdate, account)
create unique unclustered index client2_ind on client2(cli, account, vdate)

Add some data where you have more then 1 record per client.
Then try editing the value field in the table, you will see client1 give
you the problem, whereas client2 is fine.

If you try to update using SQL it works fine on both tables

Please fix this, or let me know if there is a fix for it.

Regards

Roman Vinnik

--
Roman Vinnik

Limon (Pty) Ltd

 
 
 

Delphi2 to Sybase 11 Index Problem / Bug

Post by Mikael Olofsso » Sat, 23 Nov 1996 04:00:00



> This is the first time I have encounterd this Bug (BDE bug I think), and
> here it is:
> I'm using Delphi 2 C/S on win95 to connect to Sybase System 11 on NT
> if you have a date at part of the key for a table, and the date column is
> not the last item, then when you try to update that table from a grid (or
> even Database Explorer), you get an error message saying
> "Record/Key deleted" , on every record except the first record of every
> set.

--snip--

> If you try to update using SQL it works fine on both tables

> Please fix this, or let me know if there is a fix for it.

> Regards

> Roman Vinnik

> --
> Roman Vinnik

> Limon (Pty) Ltd

I had the same problem without use of date fields. I don't remember
exactly what I did to solve the problem but the problem arises
from the table beeing in the wrong state.

One possible solution is to make sure the grid have the filtered
property turned off and set other dependent (of the table) controls
to inactive, to prevent OnDataChanged events.

/Mikael

 
 
 

1. Sybase 11.9.3 rc-script problems on HP-UX 11

I am wondering if anyone has experienced problems getting
Sybase 11.9.3 started using an rc-script on HP-UX11.

The problem is a follows:

There is one rc-script and some links under /sbin/[init.d | rc.X]
that rc-script calls a separate start and stop script located under
/opt/sybase/admin. When the HP-UX server reboots, the SQL
server boots when called by the rc-script but at login-time, it is
gone!

I have checked the errorlog from the SQL server and seems fine,
it is possible to start/stop  the SQL server manually using the start and
stop scripts. Somehow the SQL server seems to die when the init
process stops executing the rc master script.

Does anyone recognize this problem? I have tried adding nohup to the
startserver calls, but nothing seems to help.

regards,
/Fredrik Johansson
EHPT Sweden AB

2. Transaction Processing Monitors

3. migrate Sybase 11.0.1 and Sybase 11.5.1 to MS sql 6.5/7.0

4. forcing sequence to be sequential

5. Upgrade from Sybase SQL Server 11.0.1 to Sybase ASE 11.9.2

6. No you are right

7. Log scan bug in Sybase 11.0.x

8. PFW 4.5 Printing to a file

9. Known bugs in Sybase 11 under Solaris 2.5

10. Problem porting GUI from sybase 10 to sybase 11

11. VFP%/Sybase 11/ODBC bug

12. Sybase 11 and index overhead

13. HP problem and Ingres bug 99377 for ingresII on HP-UX 11