The situation is that we have an application that runs on different database servers such as Oracle, SQL Server, Interbase.
In order to communicate with these databases we use SQL. First standard SQL and translate this to the SQL dialect that is needed. Our standard SQL includes the cast...