From 2cd6c16c99f1f069fff5edd9f29076cfed208c58 Mon Sep 17 00:00:00 2001 From: cadiou <didier.cadiou@unicaen.fr> Date: Thu, 25 May 2023 19:24:29 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20champs=20duration?= =?UTF-8?q?=20restaur=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- import_into_DB.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/import_into_DB.sh b/import_into_DB.sh index 4e6ca12..da2d9e2 100644 --- a/import_into_DB.sh +++ b/import_into_DB.sh @@ -126,11 +126,10 @@ set started = substr( -- duration update tasks set duration =substr( - substr(output, - 1, - instr(output, ' seconds')-1), - -20); --- set duration = replace(replace(output, ' seconds', ''), '... used ', ''); + output, + instr(output, 'dbqueries'||char(10)) + 19, + instr(output, 'seconds'||char(10)) - instr(output, 'dbqueries'||char(10)) - 19 + ); update tasks set duration = null where not output like '%second%'; -- GitLab