Give a meaningful error on an attempt to use UPSERT on a virtual table,

rather than simply not working.

FossilOrigin-Name: fa98748f956cff95fcfda3a513cea4df27aa573ae795a6855c40bfeca661d0b2
This commit is contained in:
drh
2019-01-04 23:39:37 +00:00
parent f25cc4f3c5
commit b042d92128
4 changed files with 16 additions and 8 deletions
+3
View File
@@ -227,6 +227,9 @@ ifcapable vtab {
}
} {1}
set sqlite_where_trace 0
do_catchsql_test misc7-10.1 {
INSERT INTO t1(a,b,c) VALUES(12345,2,3) ON CONFLICT(a) DO NOTHING;
} {1 {UPSERT not implemented for virtual table "t1"}}
# Specify an ORDER BY clause that cannot be indexed.
do_test misc7-11 {