summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-06-07 14:07:11 +0200
committerunknown <msvensson@neptunus.(none)>2006-06-07 14:07:11 +0200
commit6c4102cee2808dc6d661c86a12b726d2457d9796 (patch)
tree115b2b2a008313c2fd97576629f3089638108eef /sql/sql_udf.cc
parent83063c5034a30e1acc61e116e4c33a6cfd80439d (diff)
downloadmariadb-git-6c4102cee2808dc6d661c86a12b726d2457d9796.tar.gz
Bug#20159 Inconsistant generation of generic error messages
- Use hardcoded error message instead of ER_GET_ERRNO sql/sql_udf.cc: Use hardcoded error message "Got unknown error: %d" instead of system error message "Got error %d from storage engine" as the "storage engine" has nothing to do with this.
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 6269c0a2eb3..bea3d547f3e 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -237,7 +237,7 @@ void udf_init()
}
}
if (error > 0)
- sql_print_error(ER(ER_GET_ERRNO), my_errno);
+ sql_print_error("Got unknown error: %d", my_errno);
end_read_record(&read_record_info);
new_thd->version--; // Force close to free memory