1
I have the following query
UPDATE teste SET
equacao = 'X*254/1024+15.2',
zerar = False,
MinValid = 0.00
WHERE id = 1
RETURNING *
It runs normally, but when I get to the database the plus signal +
vanishes: X*254/1024 15.2
.
How should I modify the query so that the plus sign is saved as a character?
Why -1? Is any point unclear to me? Or should I edit something?
– Christian Beregula
What kind of field
equacao
?– Lucas de Souza Cruz
the guy is
character varying
– Christian Beregula
https://stackoverflow.com/q/7433201/540552
– Victor Stafusa
I don’t want the database to solve the formula, I just want it to save it as any text. Like any other string.
– Christian Beregula
Very strange the
+
disappear. How are you performing the connection in the database and in which environment you are running it?– Victor Stafusa