Percona-Lab / pg_tde

MIT License
107 stars 19 forks source link

UPDATE statement broken after PR67 #68

Closed codeforall closed 10 months ago

codeforall commented 10 months ago

After 67, UPDATE statement adds new rows instead of updating the previous ones


DROP TABLE IF EXISTS test_update;
CREATE TABLE test_update ( a int) using pg_tde;
INSERT INTO test_update VALUES (1), (2),(3), (4);
SELECT * from test_update;
UPDATE test_update SET a = a + 1;
--Expecting 4 rows
SELECT * from test_update;
 a 
---
 1
 2
 3
 4
 2
 3
 4
 5
(8 rows)