blob: 0a34c825eb25b2f1a8aa5cd11efcbf30a3072bf4 (
plain)
1
2
3
4
5
6
|
UPDATE filelist SET
pathparts[3] = ?,
pathparts[4] = REGEXP_REPLACE(pathparts[4], CONCAT('^', REPLACE(?, '+', '\+'), '(-[0-9])'), CONCAT(?::text, '\1'))
WHERE pathparts[3] = ?
AND pathparts[4] ~ CONCAT('^', replace(?, '+', '\+'), '-[0-9]')
AND filetypeId = 1
|