When testing the application where I migrated the Firebird DB to PostgreSQL, the following error occurs when trying to save an item in the database:
Reviewing the code I could see that the error actually occurs at this point in the code:
dmCadMib.Consulta_Cliente(Cliente); // Nessa Linha pula para a procedure Consulta_Cliente
dmCadMib.ConsClienteNoGrupo;
dmCadMib.localizaCliente(StrToInt(Cliente));
Procedure Consulta_Cliente:
procedure TdmCadMIB.Consulta_Cliente(Codigo: string);
begin
cdsEmpresa.Close;
sdsEmpresa.CommandText := 'select * from Empresa where Codigo =' + Codigo;
cdsEmpresa.Open;
end;