summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-10-01 16:36:26 +0500
committerholyfoot/hf@mysql.com/deer.(none) <>2006-10-01 16:36:26 +0500
commite1f31863ab255d3b5b7080cade58cc4e5983f6ce (patch)
treef4c9c4882dc86ded8240ce7ebceee870e3fd2188 /sql/handler.cc
parentdead2e0f147017e85e4934fb65103adc464041ec (diff)
downloadmariadb-git-e1f31863ab255d3b5b7080cade58cc4e5983f6ce.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
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;