Hege B4878

Your Rank: 93
Points: 1
Hi,
I'm having trouble getting TFDQuery to behave. In my example project, I have a simple SQL database, with a single table called Trans. This table has 2 columns, TransId and Msg. We add two records to this table, where Msg is NULL in the first record. TransId is an autoinc int column.
qrySelect selects the two records ordered by TransId, so that the record with Msg = null is the first record. We then use qryUpdate to update the two records in Trans with the same values as they already have. When this is done, Msg in my second record is nulled! Why is that?
The database is created with the query below.
CREATE DATABASE [Test]
GO
USE [Test]
GO
CREATE TABLE [dbo].[Trans](
[TransId] [int] IDENTITY(1,1) NOT NULL,
[Msg] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
insert into Trans(Msg) values(NULL)
insert into Trans(Msg) values('This is a text')
Read More...
When will you focus on upgrading the Compiler for Delphi? We need lambda expressions with syntax like C#, better linking of Generics and autoguid attribute for interfaces (for generic interfaces).