added a test to cover the keyword replace as being synonymous with insert (#2261)

This commit is contained in:
pokeeffe-molecula 2022-10-27 14:29:10 -05:00 committed by GitHub
parent b32c33c992
commit e1b704d4ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(