summaryrefslogtreecommitdiff
path: root/sql/ha_berkeley.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/ha_berkeley.cc')
-rw-r--r--sql/ha_berkeley.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/ha_berkeley.cc b/sql/ha_berkeley.cc
index 10866a1872b..e9cd3f57122 100644
--- a/sql/ha_berkeley.cc
+++ b/sql/ha_berkeley.cc
@@ -1996,6 +1996,12 @@ longlong ha_berkeley::get_auto_increment()
return nr;
}
+void ha_berkeley::print_error(int error, myf errflag)
+{
+ if (error == DB_LOCK_DEADLOCK)
+ error=HA_ERR_LOCK_DEADLOCK;
+ handler::print_error(error,errflag);
+}
/****************************************************************************
Analyzing, checking, and optimizing tables