From e1b704d4eaa794d86fd5c3c78d41a470afe427a5 Mon Sep 17 00:00:00 2001 From: pokeeffe-molecula <85502298+pokeeffe-molecula@users.noreply.github.com> Date: Thu, 27 Oct 2022 14:29:10 -0500 Subject: [PATCH] added a test to cover the keyword replace as being synonymous with insert (#2261) --- sql3/sql_definitions_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sql3/sql_definitions_test.go b/sql3/sql_definitions_test.go index 100723dc1..0039e0b99 100644 --- a/sql3/sql_definitions_test.go +++ b/sql3/sql_definitions_test.go @@ -375,6 +375,15 @@ var insertTest = tableTest{ expRows: rows(), compare: compareExactUnordered, }, + { + // Replace + sqls: sqls( + "replace into testinsert (_id, a, b, s, bl, d, event, ievent) values (4, 40, 400, 'foo', false, 10.12, ['A', 'B', 'C'], [1, 2, 3])", + ), + expHdrs: hdrs(), + expRows: rows(), + compare: compareExactUnordered, + }, { // Insert with nulls sqls: sqls(