summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-10-06 08:29:56 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-10-06 08:29:56 +0300
commitde078e060e9b967e8c243a93e461619d190e8786 (patch)
tree489f693f7f04bc4db935d1c78ae952d65d8feedf /client
parent2154a1fc3566e994601a05875fdb65bd6f6d7133 (diff)
parent3708bef60683dc7b6020ee76e90738528ccad18a (diff)
downloadmariadb-git-de078e060e9b967e8c243a93e461619d190e8786.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'client')
-rw-r--r--client/mysqlimport.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index 6955ca44008..f8dd44e2781 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -1,6 +1,6 @@
/*
Copyright (c) 2000, 2015, Oracle and/or its affiliates.
- Copyright (c) 2011, 2017, MariaDB
+ Copyright (c) 2011, 2022, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -328,11 +328,7 @@ static int write_to_table(char *filename, MYSQL *mysql)
{
if (verbose)
fprintf(stdout, "Deleting the old data from table %s\n", tablename);
-#ifdef HAVE_SNPRINTF
snprintf(sql_statement, FN_REFLEN*16+256, "DELETE FROM %s", tablename);
-#else
- sprintf(sql_statement, "DELETE FROM %s", tablename);
-#endif
if (mysql_query(mysql, sql_statement))
{
db_error_with_table(mysql, tablename);