aboutsummaryrefslogtreecommitdiff
path: root/test/table.test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-08-06 00:29:06 +0000
committerdrh <drh@noemail.net>2014-08-06 00:29:06 +0000
commit0c4de2d96de879f19e4ff8f952a82713c9a9c18b (patch)
treefeb19514f5e5ab7bc512988e9b4f8c2635ecfe38 /test/table.test
parent1cfc9aa993ee0210d71b6c58c81f2a20c5590b7e (diff)
downloadsqlite-0c4de2d96de879f19e4ff8f952a82713c9a9c18b.tar.gz
sqlite-0c4de2d96de879f19e4ff8f952a82713c9a9c18b.zip
A simpler fix for ticket [3a88d85f36704eebe1] - one that uses less code.
The error message is not quite as good, but as this error has apparently not previously occurred in over 8 years of heavy use, that is not seen as a serious problem. FossilOrigin-Name: 0ad1ed8ef0b5fb5d8db44479373b2b93d8fcfd66
Diffstat (limited to 'test/table.test')
-rw-r--r--test/table.test13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/table.test b/test/table.test
index 777cc1723..656884ca7 100644
--- a/test/table.test
+++ b/test/table.test
@@ -744,7 +744,7 @@ do_execsql_test table-16.1 {
} {1 123}
do_catchsql_test table-16.2 {
INSERT INTO t16(rowid) VALUES(4);
-} {1 {misuse of aggregate function: max()}}
+} {1 {unknown function: max()}}
do_execsql_test table-16.3 {
DROP TABLE t16;
CREATE TABLE t16(x DEFAULT(abs(1)));
@@ -756,20 +756,21 @@ do_catchsql_test table-16.4 {
CREATE TABLE t16(x DEFAULT(avg(1)));
INSERT INTO t16(rowid) VALUES(123);
SELECT rowid, x FROM t16;
-} {1 {misuse of aggregate function: avg()}}
+} {1 {unknown function: avg()}}
do_catchsql_test table-16.5 {
DROP TABLE t16;
CREATE TABLE t16(x DEFAULT(count()));
INSERT INTO t16(rowid) VALUES(123);
SELECT rowid, x FROM t16;
-} {1 {misuse of aggregate function: count()}}
+} {1 {unknown function: count()}}
do_catchsql_test table-16.6 {
DROP TABLE t16;
CREATE TABLE t16(x DEFAULT(group_concat('x',',')));
INSERT INTO t16(rowid) VALUES(123);
SELECT rowid, x FROM t16;
-} {1 {misuse of aggregate function: group_concat()}}
-
-
+} {1 {unknown function: group_concat()}}
+do_catchsql_test table-16.7 {
+ INSERT INTO t16 DEFAULT VALUES;
+} {1 {unknown function: group_concat()}}
finish_test