Article Details
Id: | 18515 |
Product: | finPOWER Connect |
Type: | FIX |
Version: | 3.04.02 |
Opened: | 20/08/2021 |
Closed: | 02/09/2021 |
Released: | 02/12/2021 |
Job: | J027264 |
finDocumentFunctions.GetClientSqlWhereBuilder() function updated
The finDocumentFunctions.GetClientSqlWhereBuilder() may return SQL without specifiying the table, i.e. just include the column name.
For example;
SELECT [Client].[ClientId],[Account].[AccountId] FROM (([Client] INNER JOIN [AccountClient] ON [Client].[Pk]=[AccountClient].[ClientPk]) INNER JOIN [Account] ON [AccountClient].[AccountPk]=[Account].[Pk]) INNER JOIN [MonitorCategory] ON [Account].[MonitorCatAPk]=[MonitorCategory].[Pk] WHERE [Active]=1
Notice the WHERE clause is simple "WHERE [Active]=1". This will now return the WHERE clause as "WHERE [Client].[Active]=1".
Therefore, prior to this change, using this with other joins may cause an erro like "Ambiguous column name".