Unknown function TRIM: firebird 1.5
Posted: 06.12.2014, 11:35
Hi, I use Delhpi 7, firebird 1.5, zeosdbo 7.1.4, windows 7 64.
I have the following query:
PREVHDR."Codice Hotel" defined as VARCHAR(3)
PREVHDR."Oggetto" defined as VARCHAR(50)
PREVHDR."Arrivo" defined as DATE
PREVHDR."Partenza" defined as DATE
LINGUE_PC."Oggetto" AS "OggettoPC" defined as VARCHAR(20)
LINGUE_PC."Arrivo" AS "ArrivoPC" defined as VARCHAR(20)
LINGUE_PC."Partenza" AS "PartenzaPC" defined as VARCHAR(20)
When in the field editor I add the fields, I have the following message: "...function unknown TRIM...".
The problem is the function TZInterbase6DatabaseMetadata.ConstructNameCondition in the unit ZDbcInterbase6Metadata
in firebird 1.5 TRIM is not defined!
Second problem:
I have eliminated TRIM in the above function. The message no longer appears but the fields "ArrivoPC" and "Partenza PC" are declared TDateField but, having defined them as VARCHAR (20), they should be declared as TStringField. The other fields are defined properly.
In Zeosdbo 6.6.6 all this does not happen.
Help me
I have the following query:
Code: Select all
SELECT DISTINCT
PREVHDR."Codice Hotel",
PREVHDR."Oggetto",
PREVHDR."Arrivo",
PREVHDR."Partenza",
LINGUE_PC."Oggetto" AS "OggettoPC",
LINGUE_PC."Arrivo" AS "ArrivoPC",
LINGUE_PC."Partenza" AS "PartenzaPC"
FROM
PREVHDR
INNER JOIN LINGUE_PC ON (PREVHDR."Lingua" = LINGUE_PC."Codice")
PREVHDR."Oggetto" defined as VARCHAR(50)
PREVHDR."Arrivo" defined as DATE
PREVHDR."Partenza" defined as DATE
LINGUE_PC."Oggetto" AS "OggettoPC" defined as VARCHAR(20)
LINGUE_PC."Arrivo" AS "ArrivoPC" defined as VARCHAR(20)
LINGUE_PC."Partenza" AS "PartenzaPC" defined as VARCHAR(20)
When in the field editor I add the fields, I have the following message: "...function unknown TRIM...".
The problem is the function TZInterbase6DatabaseMetadata.ConstructNameCondition in the unit ZDbcInterbase6Metadata
Code: Select all
TZInterbase6DatabaseMetadata.ConstructNameCondition function (Pattern: string;
Column: string): string;
begin
Result: = Inherited ConstructnameCondition (Pattern, 'trim (' + Column + ')');
end;
Second problem:
I have eliminated TRIM in the above function. The message no longer appears but the fields "ArrivoPC" and "Partenza PC" are declared TDateField but, having defined them as VARCHAR (20), they should be declared as TStringField. The other fields are defined properly.
In Zeosdbo 6.6.6 all this does not happen.
Help me