summaryrefslogtreecommitdiff
path: root/mysql-test/r/fulltext_update.result
diff options
context:
space:
mode:
authorunknown <jimw@rama.(none)>2006-07-18 16:04:18 -0700
committerunknown <jimw@rama.(none)>2006-07-18 16:04:18 -0700
commit20c2ddaf0c51f4a9564f67e67d56ab8acf6f1dd9 (patch)
tree7a901fad8e45dd3cfa24659bf23114d4ef56c2ad /mysql-test/r/fulltext_update.result
parenta7dddd3b67e70292c0813e80ad255f1dc2f3a867 (diff)
downloadmariadb-git-20c2ddaf0c51f4a9564f67e67d56ab8acf6f1dd9.tar.gz
Bug #19498: Inconsistent support for DEFAULT in TEXT columns
When a default of '' was specified for TEXT/BLOB columns, the specification was silently ignored. This is presumably to be nice to applications (or people) who generate their column definitions in a not-very-clever fashion. For clarity, doing this now results in a warning, or an error in strict mode. mysql-test/r/federated.result: Update results mysql-test/r/fulltext_distinct.result: Update results mysql-test/r/fulltext_update.result: Update results mysql-test/r/gis-rtree.result: Update results mysql-test/r/gis.result: Update results mysql-test/r/join_outer.result: Update results mysql-test/r/order_by.result: Update results mysql-test/r/type_blob.result: Add new results mysql-test/r/type_ranges.result: Update results mysql-test/t/type_blob.test: Add new test sql/field.cc: Issue a warning when setting '' as the default on a BLOB/TEXT column, and make it an error in strict mode. Also, clarify comments about when NO_DEFAULT_VALUE_FLAG is set.
Diffstat (limited to 'mysql-test/r/fulltext_update.result')
-rw-r--r--mysql-test/r/fulltext_update.result2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/r/fulltext_update.result b/mysql-test/r/fulltext_update.result
index 5d3f95b318c..4a615c88fdd 100644
--- a/mysql-test/r/fulltext_update.result
+++ b/mysql-test/r/fulltext_update.result
@@ -9,6 +9,8 @@ name VARCHAR(80) DEFAULT '' NOT NULL,
FULLTEXT(url,description,shortdesc,longdesc),
PRIMARY KEY(gnr)
);
+Warnings:
+Warning 1101 BLOB/TEXT column 'longdesc' can't have a default value
insert into test (url,shortdesc,longdesc,description,name) VALUES
("http:/test.at", "kurz", "lang","desc", "name");
insert into test (url,shortdesc,longdesc,description,name) VALUES