From 62dde668b670f3c4aa9d2bc7d831b78f3cdc4038 Mon Sep 17 00:00:00 2001 From: Tobias Bussmann Date: Tue, 18 Jul 2017 20:53:45 +0200 Subject: [PATCH] fix update from 1.1 (sync with http--1.2.sql as of 1fa690d) --- http--1.1--1.2.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/http--1.1--1.2.sql b/http--1.1--1.2.sql index 6c8b1fd..4764e52 100644 --- a/http--1.1--1.2.sql +++ b/http--1.1--1.2.sql @@ -12,3 +12,13 @@ CREATE OR REPLACE FUNCTION http_head(uri VARCHAR) RETURNS http_response AS $$ SELECT http(('HEAD', $1, NULL, NULL, NULL)::http_request) $$ LANGUAGE 'sql'; + +CREATE OR REPLACE FUNCTION http_set_curlopt (curlopt VARCHAR, value VARCHAR) + RETURNS boolean + AS 'MODULE_PATHNAME', 'http_set_curlopt' + LANGUAGE 'c'; + +CREATE OR REPLACE FUNCTION http_reset_curlopt () + RETURNS boolean + AS 'MODULE_PATHNAME', 'http_reset_curlopt' + LANGUAGE 'c';