summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-09-18 21:04:49 +0300
committermonty@mashka.mysql.fi <>2002-09-18 21:04:49 +0300
commitf638ee6df91a32ed767fa67cf643dfa07f9a82d4 (patch)
tree83f34b98c4e43e4f23f9b941d93676b65ef1b657 /vio
parentdfd0f82b9368cd4d023ebc1f6eab6e88622b060c (diff)
downloadmariadb-git-f638ee6df91a32ed767fa67cf643dfa07f9a82d4.tar.gz
Added code to flush a bulk_insert index.
This fixes a bug when doing multi-row inserts on table with an auto_increment key that is not in the first key segment.
Diffstat (limited to 'vio')
-rw-r--r--vio/viosslfactories.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c
index 23a35f540f6..9e7a1475951 100644
--- a/vio/viosslfactories.c
+++ b/vio/viosslfactories.c
@@ -71,9 +71,11 @@ report_errors()
while ((l=ERR_get_error_line_data(&file,&line,&data,&flags)) != 0)
{
+#ifndef DBUG_OFF /* Avoid warning */
char buf[200];
DBUG_PRINT("error", ("OpenSSL: %s:%s:%d:%s\n", ERR_error_string(l,buf),
file,line,(flags & ERR_TXT_STRING) ? data : "")) ;
+#endif
}
DBUG_VOID_RETURN;
}