summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/deer.(none)>2006-10-01 16:36:26 +0500
committerunknown <holyfoot/hf@mysql.com/deer.(none)>2006-10-01 16:36:26 +0500
commitb8ab82a6294228c65f1ac2a3b3efa82a5abc1dc8 (patch)
treef4c9c4882dc86ded8240ce7ebceee870e3fd2188 /sql/handler.cc
parent04bf9cc7c6f17d9c6ab14a7521c1ab1708f50993 (diff)
downloadmariadb-git-b8ab82a6294228c65f1ac2a3b3efa82a5abc1dc8.tar.gz
bug #21790 (UNKNOWN ERROR message in geometry)
We issued UNKNOWN ERROR initially in this place and forgot to fix it when we implemented informative error message for this mysql-test/r/gis-rtree.result: test result mysql-test/t/gis-rtree.test: test case sql/handler.cc: let's issue informative error message here
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 4accc746664..3516b55feb5 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1788,8 +1788,8 @@ void handler::print_error(int error, myf errflag)
break;
}
case HA_ERR_NULL_IN_SPATIAL:
- textno= ER_UNKNOWN_ERROR;
- break;
+ my_error(ER_CANT_CREATE_GEOMETRY_OBJECT, MYF(0));
+ DBUG_VOID_RETURN;
case HA_ERR_FOUND_DUPP_UNIQUE:
textno=ER_DUP_UNIQUE;
break;