From 95e746c6ec7afde4631a15eecbf27889a616a418 Mon Sep 17 00:00:00 2001 From: Andreas Ericsson Date: Wed, 1 Sep 2010 09:41:35 +0200 Subject: [PATCH] import: Only read last time from sql if --incremental lacks timestamp Signed-off-by: Andreas Ericsson --- import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.c b/import.c index 18ae1cc..d53b6b6 100644 --- a/import.c +++ b/import.c @@ -1388,7 +1388,7 @@ int main(int argc, char **argv) if (truncate_db) sql_query("TRUNCATE %s", sql_table_name()); - if (incremental) { + if (incremental == 1) { MYSQL_RES *result; MYSQL_ROW row; sql_query("SELECT %s FROM %s.%s ORDER BY %s DESC LIMIT 1", -- 2.11.4.GIT