1
I am trying to update my Clientdataset’s Fields with the new variables of the bank, but I came across the following error:
Why this could be happening?
Join of the Tsqldataset:
select E.*, S.Suprimento from Estoque E, Suprimento S
Where S.Codigo = E.CodigoSuprimento
and E.Usado = 0
Order by S.Suprimento
After editing Fields the following error Occurs:
Your BD is postgresql?
– Sorack
Yes, the application previously used the Firebird Database is now Postgresql
– R.Santos
Everything indicates that it is a "Where" or "Join" where you compare a varchar with an integer. It can also be the type of parameter you entered into the component. Check if there is parameter, otherwise change remove the "Where" for verification, so you check the actual problem by deletion
– Sorack
@Sorack I looked at the code and did not find an error in any "Where" or "Join" I will edit the question with the "Join" that is in my
TSQLDataSet
– R.Santos
I was able to access the Fields now, the error was in
E.Usado = 0
that being a String would have to beE.Usado = '0'
– R.Santos
Try to change the line "and E.Used = 0" to "and E.Used = '0'"
– Sorack
Precisely. I will put this answer and thank you if you give me a +1 ^^
– Sorack
Let’s go continue this discussion in chat.
– Sorack