From eda9d20a0b2c4cc180f186acc91eba0d23e489cb Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Thu, 12 Jun 2025 19:59:13 -0300 Subject: [PATCH] tests --- testing/update.test | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/update.test b/testing/update.test index a9b9e8193..bf64a196b 100755 --- a/testing/update.test +++ b/testing/update.test @@ -214,3 +214,10 @@ do_execsql_test_on_specific_db {:memory:} update_where_or_regression_test { SELECT * from t; } {lovely_revolt lovely_revolt} + +do_execsql_test_in_memory_any_error update_primary_key_constraint_error { + CREATE TABLE eye (study REAL, spring BLOB, save TEXT, thank REAL, election INTEGER, PRIMARY KEY (election)); + INSERT INTO eye VALUES (183559032.521585, x'6625d092', 'Trial six should.', 2606132742.43174, 2817); + INSERT INTO eye VALUES (78255586.9204539, x'651061e8', 'World perhaps.', -5815764.49018679, 1917); + UPDATE eye SET election = 6150; +}