Page 1 of 1

TableName cannot be empty on TMyQuery.Execute

Posted: Thu 21 Jan 2021 16:30
by DidierG
Hi all,

I have a "TableName cannot be empty" with MyDAC 10.3.2 in Delphi 6 and Delphi 7 on a query in our software.

It seems to be caused by a REPLACE of the point character (.) in some cases.

Here is a query as simple as possible that causes me the problem.

A simple table.

Code: Select all

CREATE TABLE "tmp_stock" (
  "barcode" char(20) COLLATE latin1_bin DEFAULT '',
  KEY "id1" ("barcode")
)
The query

Code: Select all

drop temporary table if exists tmp_tempo2;
create temporary table tmp_tempo2 
select barcode
from tmp_stock t1
;

select barcode, REPLACE(barcode, '.',',')  as Barcode2 
from tmp_tempo2 t2
If I replace REPLACE(barcode, '.',',') by REPLACE(barcode, 'x',',') there is no error.

If the REPLACE is moved on the first select it works.

Code: Select all

drop temporary table if exists tmp_tempo2;
create temporary table tmp_tempo2 
select barcode, REPLACE(barcode, 'x',',')  as Barcode2
from tmp_stock t1
;

select barcode, Barcode2 
from tmp_tempo2 t2
Our real request is of course more complex.

How can we fix this error ?

Thank you in advance.

Re: TableName cannot be empty on TMyQuery.Execute

Posted: Fri 29 Jan 2021 14:26
by ViktorV
Thank you for the information. We have reproduced the issue and investigation is in progress. We will inform you when we have any results.

Re: TableName cannot be empty on TMyQuery.Execute

Posted: Mon 08 Feb 2021 08:45
by DidierG
Hi,

Have you any news on the fix of this issue ?

Thank you.

Re: TableName cannot be empty on TMyQuery.Execute

Posted: Wed 10 Feb 2021 15:13
by ViktorV
We will set high-priority status to your question and inform you as soon as any results are available, but we can't tell any timeframe at the moment.

Re: TableName cannot be empty on TMyQuery.Execute

Posted: Wed 17 Feb 2021 13:24
by ViktorV
Thank you for the information. We have reproduced and fixed the issue. This fix will be included in the next build of MyDAC.
We can send you the nigthly build that include the necessary changes.
Please provide your license number and IDE version to us using the contact form https://devart.com/company/contactform.html and we will send you a night build.