当我在VPS终端(Centos 6.8)中运行时,命令CREATE OR REPLACE FUNCTION provjera_teme()
RETURNS TRIGGER
AS $$
DECLARE postoji BOOLEAN;
BEGIN
postoji := EXISTS(
SELECT poruka
FROM poruka
WHERE posiljatelj = NEW.posiljatelj
AND primatelj = NEW.primatelj
AND (naslov = NEW.naslov OR naslov LIKE 'Re: ' || NEW.naslov)
);
IF postoji THEN
UPDATE poruka
SET naslov = 'Re: ' || naslov
WHERE posiljatelj = NEW.posiljatelj
AND primatelj = NEW.primatelj
AND naslov = NEW.naslov AND naslov NOT LIKE 'Re%';
RETURN NULL;
END IF;
RETURN NEW;
END;
$$
LANGUAGE plpgsql;
CREATE TRIGGER tema_provjera
BEFORE INSERT
ON poruka
FOR EACH ROW EXECUTE PROCEDURE provjera_teme();
保存的文件输出为GEØRGE.mp3
但是当我在PHP(v5.3.3)youtube-dl some_link
中使用时,保存的文件的输出只是GERGE.mp3
我该如何解决?