Loading import_into_DB.sh +8 −4 Original line number Diff line number Diff line Loading @@ -101,14 +101,18 @@ where output like 'adhoc%'; -- classname update tasks set classname = trim( set classname = substr( output, instr(output, '(')) , '()') instr(output, '(') +1, -- pos. ( instr(output, char(10)) - instr(output, '(') -2 -- longueur jusquau new line ) where type = 'scheduled'; update tasks set classname = replace(output, 'adhoc task: ', '') set classname = replace( substr(output, 1, -1+instr(output, char(10))), -- 1ere ligne 'adhoc task: ', '') where type = 'adhoc'; -- started Loading Loading
import_into_DB.sh +8 −4 Original line number Diff line number Diff line Loading @@ -101,14 +101,18 @@ where output like 'adhoc%'; -- classname update tasks set classname = trim( set classname = substr( output, instr(output, '(')) , '()') instr(output, '(') +1, -- pos. ( instr(output, char(10)) - instr(output, '(') -2 -- longueur jusquau new line ) where type = 'scheduled'; update tasks set classname = replace(output, 'adhoc task: ', '') set classname = replace( substr(output, 1, -1+instr(output, char(10))), -- 1ere ligne 'adhoc task: ', '') where type = 'adhoc'; -- started Loading