Page 1 of 1

Problem with RefreshRecord and column called "[_004]"

Posted: Thu 13 Oct 2016 07:54
by dupe
Hello,

we have a column called "[_004]" in our table.

Now we want to get a value from this query:

Code: Select all

query.SQL.Add('SELECT * FROM TABLE');
query.Open;
query.SQLRefresh.Text := 'SELECT * FROM TABLE WHERE ID = :ID';
query.RefreshRecord;
The value we retrieve from the table depends on the execution.
Sometimes we get a value and sometimes we only get a NULL value.
When we delete "[_004]" from the query we get a value for each column.
Additionally when we skip the line "query.SQLRefresh.Text" we get a value even with the column "[_004]".
We guess the problem lies in setting the value for query.SQLRefresh.Text.
But we can't delete this line. We've a more complex code in production where we need it.

Do you have any suggestions?

Best regards

Re: Problem with RefreshRecord and column called "[_004]"

Posted: Mon 17 Oct 2016 10:36
by azyk
Please compose a small sample reproducing the issue and send it using the contact form https://www.devart.com/company/contactform.html . Include CREATE scripts for test tables in the sample.

Re: Problem with RefreshRecord and column called "[_004]"

Posted: Wed 19 Oct 2016 14:22
by dupe
I still got no answer from my contact request.

Here is the requested script.

Code: Select all

CREATE TABLE [dbo].[TABLE](
	[TABLE_ID] [int] IDENTITY(1,1) NOT NULL,
	[ID] [int] NOT NULL,
	[_004] [nvarchar](40) NULL,
	[TS] [timestamp] NOT NULL,
 CONSTRAINT [PK_TABLE] PRIMARY KEY CLUSTERED 
(
	[TABLE_ID] ASC
))

Re: Problem with RefreshRecord and column called "[_004]"

Posted: Tue 25 Oct 2016 13:40
by azyk
We have already fixed this problem. This fix will be included in the next SDAC build.

Re: Problem with RefreshRecord and column called "[_004]"

Posted: Tue 25 Oct 2016 16:20
by dupe
I'm glad to read that.
When is it planned to release the next version?

Re: Problem with RefreshRecord and column called "[_004]"

Posted: Fri 28 Oct 2016 07:17
by azyk
SDAC release is planned for the next week.