Save formula postgresql

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 + sign disappears: X*254/1024 15.2 .

How do I change the query so that the plus sign is saved as a character?

    
asked by anonymous 15.02.2018 / 20:54

1 answer

1

The problem was not in pgAdmin as I said, but in the php page that received the POST and performed the insertion. The + is converted to <espaço> , to use the + character it is necessary to change it by %2B in the parameter to be passed.

    
15.02.2018 / 21:17