diff options
author | unknown <kent@mysql.com> | 2006-02-18 08:46:18 +0100 |
---|---|---|
committer | unknown <kent@mysql.com> | 2006-02-18 08:46:18 +0100 |
commit | 4bc61ff95c3957078f021a53431b56447e0806d1 (patch) | |
tree | b06b4763bf4827715a3ec1d74c10007a7a8883bf /client/mysqlimport.c | |
parent | 3470647a6d832ccf06ded76780bb9eadfccfde5b (diff) | |
download | mariadb-git-4bc61ff95c3957078f021a53431b56447e0806d1.tar.gz |
mysqlimport.c:
Handle case where there is no snprintf()
libmysql.vcproj, mysqlclient.vcproj:
Added __WIN__ symbol, needed when compiling dbug.c
dbug.vcproj:
Changed __WIN32__ to __WIN__
dbug.c:
Added Windows specific code to handle TIMESTAMP_ON log line format
make_win_src_distribution.sh:
Copy plugin directory recursively
dbug.vcproj:
Define __WIN__ for all targets
scripts/make_win_src_distribution.sh:
Copy plugin directory recursively
dbug/dbug.c:
Added Windows specific code to handle TIMESTAMP_ON log line format
VC++Files/client/mysqlclient.vcproj:
Added __WIN__ symbol, needed when compiling dbug.c
VC++Files/dbug/dbug.vcproj:
Changed __WIN32__ to __WIN__
VC++Files/libmysql/libmysql.vcproj:
Added __WIN__ symbol, needed when compiling dbug.c
client/mysqlimport.c:
Handle case where there is no snprintf()
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r-- | client/mysqlimport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index f5b60d4938c..0ca7b80662d 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -302,7 +302,11 @@ static int write_to_table(char *filename, MYSQL *sock) { 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(sock, sql_statement)) { db_error_with_table(sock, tablename); |