I have the following problem in both Code Typhon and Delphi:
I have two tables, PREVHDR and LINGUE_PC, with many fields including two of these having the same name: "Arrivo".
PREVHDR."Arrivo" is DATE type, LINGUE_PC."Arrivo" is VARCHAR(20) type.
If I execute the following query in TZQuery:
Code: Select all
SELECT
LINGUE_PC."Arrivo",
PREVHDR."Arrivo"
FROM
PREVHDR INNER JOIN
LINGUE_PC ON (PREVHDR."Lingua" = LINGUE_PC."Codice")
But if I run this other query:
Code: Select all
SELECT
PREVHDR."Arrivo",
LINGUE_PC."Arrivo"
FROM
PREVHDR INNER JOIN
LINGUE_PC ON (PREVHDR."Lingua" = LINGUE_PC."Codice")
If, on the other hand, I create VIEW:
Code: Select all
CREATE VIEW TEST_VIEW(
"Arrivo",
"Arrivo1")
AS
SELECT
PREVHDR."Arrivo",
LINGUE_PC."Arrivo"
FROM
PREVHDR INNER JOIN
LINGUE_PC ON (PREVHDR."Lingua" = LINGUE_PC."Codice");
Code: Select all
SELECT * FROM TEST_VIEW
Is it a zeoslib bug?
I use zeoslib-code-0-4080-trunk
The problem occurs with various versions of firebird.
It was not present in Zeoslib 6.6.6
Thanks.