我已经安装了 Magento ,并将实时服务器目录合并到已经安装的magento目录中,但是发现错误:
致命错误:在第14行的/Applications/XAMPP/xamppfiles/htdocs/magento/magento/app/code/local/Varien/Autoload.php中找不到类'Extendware_EWCore_Model_Autoload'
CREATE OR REPLACE FUNCTION test(_id varchar, _data varchar[])
RETURNS TABLE (id varchar, filename text, size int)
AS $$
BEGIN
IF NOT EXISTS ( SELECT 1 FROM my_table t WHERE t.id = _id) THEN
RETURN QUERY
with ins AS
(
INSERT INTO my_table (id, filename, size)
VALUES (_data[1],_data[2],_data[3]::int ) RETURNING *
) ---refer elements ^ properly cast them
SELECT * FROM ins;
ELSE
RETURN QUERY SELECT * FROM my_table t WHERE t.id = _id;
END IF;
END
$$ LANGUAGE plpgsql;
文件有问题。有人可以帮我吗?