From 6b8193ad9aad9fa3bad9229c276490cbb658abf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ja=CC=81n=20Ma=CC=81te=CC=81?=
-Copyright 2007-2011 | Andrew McMillan -
-
-
-
+Copyright 2007-2014 | Andrew McMillan
-since paid work is my biggest distraction from free software.Can you think of more?
From 29a0898a10394053123e81481faa2b219abe1a1f Mon Sep 17 00:00:00 2001 From: Jim FentonDAViCal is a server for calendar sharing. It is an implementation of the CalDAV protocol which is designed -for storing calendaring resources (in iCalendar format) on a remote shared server.
+DAViCal is a server for calendar sharing. It is an implementation +of the CalDAV protocol which is designed for storing calendaring +resources (in iCalendar format) on a remote shared server.
An increasing number of calendar clients support the maintenance of shared remote calendars through CalDAV, including Mozilla Calendar (Sunbird/Lightning), Evolution, Mulberry, Chandler, and various other closed-source products @@ -30,9 +31,9 @@ and writing the same calendar entries over time, and scheduling of meetings with versions of Linux, FreeBSD, Mac OSX and even Microsoft Windows. We definitely do not recommend using Windows for this unless you are completely hobbled by silly internal IT policies and have to do so.
-You can download DAViCal from http://debian.mcmillan.net.nz/
-Start looking on the DAViCal Installation Page for more places to download, and +
Start by looking on the DAViCal + Installation Page for instructions on places to download, and detailed instructions as to what to do when you have it.
There is a lot of information on the wiki about DAViCal configuration settings but in most cases the configuration will need very few of these settings.
diff --git a/docs/website/installation.php b/docs/website/installation.php index 353d672e..6c199551 100644 --- a/docs/website/installation.php +++ b/docs/website/installation.php @@ -5,73 +5,41 @@Ideally you will be running a recent Debian (or Ubuntu) release and will -be able to add:
--deb http://debian.mcmillan.net.nz/debian lenny awm --
to your /etc/apt/sources.list. Once you have done that you
-can use apt-get or synaptic or some other equivalent package
-manager to fetch and install DAViCal and all the dependencies.
This repository is signed by Andrew McMillan's public key, which you can install so that -you don't get asked for confirmation all the time:
- --sudo apt-key advanced --keyserver pgp.net.nz --recv-keys F6E0FA5CF0307507BB23A512EAFCFEBF8FEB8EBF -- -
Skip to the "Database Setup" part if you have done that already.
- +Recent Debian (and Ubuntu) releases have DAViCal 1.1.1 and AWL 0.53 + (a library referenced by DAViCal) available in their repositories, + and you can use apt-get or similar tools to download and install + DAViCal. Once you have done that, you should be able to proceed to + the Database Setup section, below.
Please write something up about your experiences in the Wiki, adding distribution specific -notes to pages somewhere under here: - http://wiki.davical.org/w/Installation_Stuff
+The DAViCal wiki contains + information on installation on other versions of Linux. Please feel + free to contribute your experiences, using the mailing list if you + don't have a wiki account.
-We have created RPM packages of DAViCal and libawl-php from the .deb packages -using "alien". These are reported to work fine, so use them and then proceed to the -Pre-requisites section below. If you would like to work with us to create native -RPM packages please get in touch!
+In many cases, you will need to download the latest versions of
+the DAViCal and awl packages from
+the repository on
+GitLab. More details on this are on
+the Downloading
+ page on the wiki.
On SuSE Linux you may need to look in /var/lib/pgsql/data/ for the pg_hba.conf file.
- -Davical and the awl library ebuilds are available on the sunrise overlay. -You'll have to add this overlay to your system:
--emerge layman -layman -f -a sunrise -echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf -- -
From there, you can keep the overlay in sync with the command:
-layman -s sunrise- -
Davical can now be installed with a normal:
-emerge davical- -
You will need to download the latest versions of the DAViCal and awl packages
-from the sourceforge download page for DAViCal.
You will need to untar these. Preferably you will untar them from within the "/usr/share" directory and everything
-will be in it's expected location (well, except the docs, but it will at least be tidy and everything will be in one place).
We would like to hear from non-Debian users regarding things which might have been missed, or things you have -learned about the system, so please write about your installation experiences on the Wiki, or post a message -in the Sourceforge forums.
+We would like to hear from non-Debian users regarding things which +might have been missed, or things you have learned about the system, +so please write about your installation experiences on the Wiki, or +post a message on the mailing list.
We would really like to hear from you. As far as we can see there is no reason why this -can't all work on FreeBSD, Microsoft Windows, VMS, Mac OS or whatever else, as long as the -pre-requisites are able to be installed.
-For Unix and unix-like operating systems the "Other Linux Users" instructions are likely -to be reasonably close to what you need. For other systems everything will need some -adjustment, and in particular some of the path name and shell expectations coded into -the database creation scripts are likely to need love.
+We would really like to hear from you. As far as we can see there +is no reason why this can't all work on FreeBSD, Microsoft Windows, +VMS, Mac OS or whatever else, as long as the pre-requisites are able +to be installed.
+ +For Unix and unix-like operating systems the "Other Linux Users" +instructions are likely to be reasonably close to what you need. For +other systems everything will need some adjustment, and in particular +some of the path name and shell expectations coded into the database +creation scripts are likely to need love.
We're available to answer questions, anyway :-)
Since the CalDAV store takes over a significant amount of path
-hierarchy, it can be easier in it's own virtual
+hierarchy, it can be easier in its own virtual
host. If you want it to operate within the web root of some
other application there are instructions on the Wiki about doing this,
as well as other fancy tricks such as configuring URL rewriting in
From 931651ca325a2044669de7da014be614684069e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CPaul?= <“p.kallnbach@gorilla-computing.de”>
Date: Tue, 2 Sep 2014 20:01:28 +0200
Subject: [PATCH 12/21] Remove quoted SQL language identifiers
---
dba/better_perms.sql | 16 +++++------
dba/caldav_functions.sql | 56 ++++++++++++++++++-------------------
dba/davical.sql | 6 ++--
dba/patches/1.1.12.sql | 2 +-
dba/patches/1.1.12a.sql | 2 +-
dba/patches/1.2.1.sql | 2 +-
dba/patches/1.2.10a.sql | 2 +-
dba/patches/1.2.1a.sql | 2 +-
dba/patches/1.2.1b.sql | 2 +-
dba/patches/1.2.6.sql | 18 ++++++------
dba/patches/1.2.7.sql | 4 +--
dba/rrule_functions-8.1.sql | 38 ++++++++++++-------------
dba/rrule_functions.sql | 40 +++++++++++++-------------
13 files changed, 95 insertions(+), 95 deletions(-)
diff --git a/dba/better_perms.sql b/dba/better_perms.sql
index 0fe1837d..35c1e4b1 100644
--- a/dba/better_perms.sql
+++ b/dba/better_perms.sql
@@ -45,7 +45,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- This legacy conversion function will eventually be removed, once all logic
-- has been converted to use bitmaps, or to use the bits_to_priv() output.
@@ -98,7 +98,7 @@ BEGIN
RETURN out_priv;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION get_permissions( INT, INT ) RETURNS TEXT AS $$
DECLARE
@@ -151,12 +151,12 @@ BEGIN
RETURN '';
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION get_group_role_no() RETURNS INT AS $$
SELECT role_no FROM roles WHERE role_name = 'Group'
-$$ LANGUAGE 'sql' IMMUTABLE;
+$$ LANGUAGE sql IMMUTABLE;
CREATE or REPLACE FUNCTION has_legacy_privilege( INT, TEXT, INT ) RETURNS BOOLEAN AS $$
DECLARE
@@ -205,7 +205,7 @@ BEGIN
RETURN FALSE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given a verbose DAV: or CalDAV: privilege name return the bitmask
@@ -242,7 +242,7 @@ BEGIN
ELSE 0 END)::BIT(24);
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given an array of verbose DAV: or CalDAV: privilege names return the bitmask
@@ -269,7 +269,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- This legacy conversion function will eventually be removed, once all logic
@@ -368,4 +368,4 @@ BEGIN
RETURN out_priv;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
diff --git a/dba/caldav_functions.sql b/dba/caldav_functions.sql
index 5be1fc1e..9733a007 100644
--- a/dba/caldav_functions.sql
+++ b/dba/caldav_functions.sql
@@ -74,7 +74,7 @@ BEGIN
RETURN our_answer;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION calculate_later_timestamp( TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH TIME ZONE, TEXT ) RETURNS TIMESTAMP WITH TIME ZONE AS $$
@@ -239,12 +239,12 @@ BEGIN
RETURN our_answer;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION usr_is_role( INT, TEXT ) RETURNS BOOLEAN AS $$
SELECT EXISTS( SELECT 1 FROM role_member JOIN roles USING(role_no) WHERE role_member.user_no=$1 AND roles.role_name=$2 )
-$$ LANGUAGE 'sql' IMMUTABLE STRICT;
+$$ LANGUAGE sql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION legacy_get_permissions( INT, INT ) RETURNS TEXT AS $$
DECLARE
@@ -333,13 +333,13 @@ BEGIN
RETURN '';
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Function to convert a PostgreSQL date into UTC + the format used by iCalendar
CREATE or REPLACE FUNCTION to_ical_utc( TIMESTAMP WITH TIME ZONE ) RETURNS TEXT AS $$
SELECT to_char( $1 at time zone 'UTC', 'YYYYMMDD"T"HH24MISS"Z"' )
-$$ LANGUAGE 'sql' IMMUTABLE STRICT;
+$$ LANGUAGE sql IMMUTABLE STRICT;
-- Function to set an arbitrary DAV property
CREATE or REPLACE FUNCTION set_dav_property( TEXT, INTEGER, TEXT, TEXT ) RETURNS BOOLEAN AS $$
@@ -365,7 +365,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' STRICT;
+$$ LANGUAGE plpgsql STRICT;
-- List a user's relationships as a text string
CREATE or REPLACE FUNCTION relationship_list( INT8 ) RETURNS TEXT AS $$
@@ -385,7 +385,7 @@ BEGIN
END LOOP;
RETURN rlist;
END;
-$$ LANGUAGE 'plpgsql';
+$$ LANGUAGE plpgsql;
DROP FUNCTION rename_davical_user( TEXT, TEXT );
DROP TRIGGER usr_modified ON usr CASCADE;
@@ -518,7 +518,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS $$
RETURN NEW;
END
-$$ LANGUAGE 'plpgsql';
+$$ LANGUAGE plpgsql;
CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
@@ -573,7 +573,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- This legacy conversion function will eventually be removed, once all logic
-- has been converted to use bitmaps, or to use the bits_to_priv() output.
@@ -626,7 +626,7 @@ BEGIN
RETURN out_priv;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION get_permissions( INT, INT ) RETURNS TEXT AS $$
DECLARE
@@ -679,12 +679,12 @@ BEGIN
RETURN '';
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION get_group_role_no() RETURNS INT AS $$
SELECT role_no FROM roles WHERE role_name = 'Group'
-$$ LANGUAGE 'sql' IMMUTABLE;
+$$ LANGUAGE sql IMMUTABLE;
CREATE or REPLACE FUNCTION has_legacy_privilege( INT, TEXT, INT ) RETURNS BOOLEAN AS $$
DECLARE
@@ -733,7 +733,7 @@ BEGIN
RETURN FALSE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given a verbose DAV: or CalDAV: privilege name return the bitmask
@@ -770,7 +770,7 @@ BEGIN
ELSE 0 END)::BIT(24);
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given an array of verbose DAV: or CalDAV: privilege names return the bitmask
@@ -797,7 +797,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- NOTE: Round-trip through this and then back through privilege_to_bits
@@ -892,7 +892,7 @@ BEGIN
RETURN out_priv;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- Expanded group memberships out to some depth
@@ -902,7 +902,7 @@ CREATE or REPLACE FUNCTION expand_memberships( INT8, INT ) RETURNS SETOF INT8 AS
SELECT expanded.g_id FROM (SELECT CASE WHEN $2 > 0 THEN expand_memberships( group_id, $2 - 1) END AS g_id
FROM group_member WHERE member_id = $1) AS expanded
WHERE expanded.g_id IS NOT NULL;
-$$ LANGUAGE 'sql' STABLE STRICT;
+$$ LANGUAGE sql STABLE STRICT;
-- Expanded group members out to some depth
CREATE or REPLACE FUNCTION expand_members( INT8, INT ) RETURNS SETOF INT8 AS $$
@@ -911,7 +911,7 @@ CREATE or REPLACE FUNCTION expand_members( INT8, INT ) RETURNS SETOF INT8 AS $$
SELECT expanded.m_id FROM (SELECT CASE WHEN $2 > 0 THEN expand_members( member_id, $2 - 1) END AS m_id
FROM group_member WHERE group_id = $1) AS expanded
WHERE expanded.m_id IS NOT NULL;
-$$ LANGUAGE 'sql' STABLE STRICT;
+$$ LANGUAGE sql STABLE STRICT;
@@ -949,7 +949,7 @@ BEGIN
RETURN out_conferred;
END;
-$$ LANGUAGE 'plpgsql' STABLE STRICT;
+$$ LANGUAGE plpgsql STABLE STRICT;
-- Privileges from accessor to grantor, by user_no
@@ -972,7 +972,7 @@ BEGIN
RETURN out_conferred;
END;
-$$ LANGUAGE 'plpgsql' STABLE STRICT;
+$$ LANGUAGE plpgsql STABLE STRICT;
-- Privileges from accessor (by principal_id) to path
@@ -1046,7 +1046,7 @@ BEGIN
RETURN out_conferred;
END;
-$$ LANGUAGE 'plpgsql' STABLE STRICT;
+$$ LANGUAGE plpgsql STABLE STRICT;
-- List a user's memberships as a text string
@@ -1066,7 +1066,7 @@ BEGIN
END LOOP;
RETURN mlist;
END;
-$$ LANGUAGE 'plpgsql' STRICT;
+$$ LANGUAGE plpgsql STRICT;
-- List a user's members as a text string
@@ -1086,7 +1086,7 @@ BEGIN
END LOOP;
RETURN mlist;
END;
-$$ LANGUAGE 'plpgsql' STRICT;
+$$ LANGUAGE plpgsql STRICT;
-- List the privileges as a text string
@@ -1113,7 +1113,7 @@ BEGIN
END IF;
RETURN plist;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
DROP TRIGGER principal_modified ON principal CASCADE;
@@ -1175,7 +1175,7 @@ CREATE or REPLACE FUNCTION p_has_proxy_access_to( INT8, INT ) RETURNS SETOF INT8
WHERE (default_privileges & 5::BIT(24)) != 0::BIT(24)
AND principal_id != $1
) subquery;
-$$ LANGUAGE 'sql' STABLE STRICT;
+$$ LANGUAGE sql STABLE STRICT;
-- A list of the principals who can proxy to this principal
@@ -1185,7 +1185,7 @@ CREATE or REPLACE FUNCTION grants_proxy_access_from_p( INT8, INT ) RETURNS SETOF
WHERE by_collection IS NULL AND by_principal != $1
AND by_principal IN (SELECT expand_members(g2.to_principal,$2) FROM grants g2 WHERE g2.by_principal = $1)
;
-$$ LANGUAGE 'sql' STABLE STRICT;
+$$ LANGUAGE sql STABLE STRICT;
@@ -1209,7 +1209,7 @@ BEGIN
VALUES( in_collection_id, in_status, tmp_int, in_dav_name);
RETURN TRUE;
END
-$$ LANGUAGE 'plpgsql' VOLATILE STRICT;
+$$ LANGUAGE plpgsql VOLATILE STRICT;
CREATE or REPLACE FUNCTION new_sync_token( INT8, INT8 ) RETURNS INT8 AS $$
@@ -1254,7 +1254,7 @@ BEGIN
-- Returning the new token
RETURN new_token;
END
-$$ LANGUAGE 'plpgsql' STRICT;
+$$ LANGUAGE plpgsql STRICT;
DROP TRIGGER alarm_changed ON calendar_alarm CASCADE;
diff --git a/dba/davical.sql b/dba/davical.sql
index 347ebc34..e1f28097 100644
--- a/dba/davical.sql
+++ b/dba/davical.sql
@@ -36,7 +36,7 @@ BEGIN
ELSE 0 END)::BIT(24);
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given an array of verbose DAV: or CalDAV: privilege names return the bitmask
CREATE or REPLACE FUNCTION privilege_to_bits( TEXT[] ) RETURNS BIT(24) AS $$
@@ -62,7 +62,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- This sequence is used in a number of places so that any DAV resource will have a unique ID
@@ -262,7 +262,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS $$
RETURN NEW;
END
-$$ LANGUAGE 'plpgsql';
+$$ LANGUAGE plpgsql;
CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
diff --git a/dba/patches/1.1.12.sql b/dba/patches/1.1.12.sql
index b50a6da1..dde540d4 100644
--- a/dba/patches/1.1.12.sql
+++ b/dba/patches/1.1.12.sql
@@ -46,7 +46,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS '
RETURN NEW;
END
-' LANGUAGE 'plpgsql';
+' LANGUAGE plpgsql;
CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
diff --git a/dba/patches/1.1.12a.sql b/dba/patches/1.1.12a.sql
index 525da349..5c364afe 100644
--- a/dba/patches/1.1.12a.sql
+++ b/dba/patches/1.1.12a.sql
@@ -48,7 +48,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS '
RETURN NEW;
END
-' LANGUAGE 'plpgsql';
+' LANGUAGE plpgsql;
CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
diff --git a/dba/patches/1.2.1.sql b/dba/patches/1.2.1.sql
index 197a6457..0b530c4b 100644
--- a/dba/patches/1.2.1.sql
+++ b/dba/patches/1.2.1.sql
@@ -42,7 +42,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS '
RETURN NEW;
END
-' LANGUAGE 'plpgsql';
+' LANGUAGE plpgsql;
-- CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
-- FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
diff --git a/dba/patches/1.2.10a.sql b/dba/patches/1.2.10a.sql
index 02d5f25d..d75fd020 100644
--- a/dba/patches/1.2.10a.sql
+++ b/dba/patches/1.2.10a.sql
@@ -28,7 +28,7 @@ CREATE or REPLACE FUNCTION check_db_revision( INT, INT, INT ) RETURNS BOOLEAN AS
RAISE EXCEPTION ''Database has not been upgraded to %.%.%'', major, minor, patch;
RETURN FALSE;
END;
-' LANGUAGE 'plpgsql';
+' LANGUAGE plpgsql;
-- Just in case these constraints got added manually, so we won't fail
diff --git a/dba/patches/1.2.1a.sql b/dba/patches/1.2.1a.sql
index 648cb7c3..c7f3b90a 100644
--- a/dba/patches/1.2.1a.sql
+++ b/dba/patches/1.2.1a.sql
@@ -42,7 +42,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS '
RETURN NEW;
END
-' LANGUAGE 'plpgsql';
+' LANGUAGE plpgsql;
-- CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
-- FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
diff --git a/dba/patches/1.2.1b.sql b/dba/patches/1.2.1b.sql
index f4e006da..7d346c44 100644
--- a/dba/patches/1.2.1b.sql
+++ b/dba/patches/1.2.1b.sql
@@ -42,7 +42,7 @@ CREATE or REPLACE FUNCTION sync_dav_id ( ) RETURNS TRIGGER AS '
RETURN NEW;
END
-' LANGUAGE 'plpgsql';
+' LANGUAGE plpgsql;
-- CREATE TRIGGER caldav_data_sync_dav_id AFTER INSERT OR UPDATE ON caldav_data
-- FOR EACH ROW EXECUTE PROCEDURE sync_dav_id();
diff --git a/dba/patches/1.2.6.sql b/dba/patches/1.2.6.sql
index 7fb6e532..6672b0f0 100644
--- a/dba/patches/1.2.6.sql
+++ b/dba/patches/1.2.6.sql
@@ -50,7 +50,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- This legacy conversion function will eventually be removed, once all logic
-- has been converted to use bitmaps, or to use the bits_to_priv() output.
@@ -103,7 +103,7 @@ BEGIN
RETURN out_priv;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION get_permissions( INT, INT ) RETURNS TEXT AS $$
DECLARE
@@ -156,12 +156,12 @@ BEGIN
RETURN '';
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION get_group_role_no() RETURNS INT AS $$
SELECT role_no FROM roles WHERE role_name = 'Group'
-$$ LANGUAGE 'sql' IMMUTABLE;
+$$ LANGUAGE sql IMMUTABLE;
CREATE or REPLACE FUNCTION has_legacy_privilege( INT, TEXT, INT ) RETURNS BOOLEAN AS $$
DECLARE
@@ -210,7 +210,7 @@ BEGIN
RETURN FALSE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given a verbose DAV: or CalDAV: privilege name return the bitmask
@@ -247,7 +247,7 @@ BEGIN
ELSE 0 END)::BIT(24);
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- Given an array of verbose DAV: or CalDAV: privilege names return the bitmask
@@ -274,7 +274,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
-- This legacy conversion function will eventually be removed, once all logic
@@ -372,7 +372,7 @@ BEGIN
RETURN out_priv;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
@@ -491,7 +491,7 @@ BEGIN
RETURN out_bits;
END
$$
-LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+LANGUAGE plpgsql IMMUTABLE STRICT;
ALTER TABLE relationship_type ADD COLUMN bit_confers BIT(24) DEFAULT privilege_to_bits(ARRAY['DAV::read','DAV::write']);
diff --git a/dba/patches/1.2.7.sql b/dba/patches/1.2.7.sql
index 1b5147d2..d0c6ba88 100644
--- a/dba/patches/1.2.7.sql
+++ b/dba/patches/1.2.7.sql
@@ -54,7 +54,7 @@ BEGIN
VALUES( in_collection_id, in_status, tmp_int, in_dav_name);
RETURN TRUE;
END
-$$ LANGUAGE 'plpgsql' VOLATILE STRICT;
+$$ LANGUAGE plpgsql VOLATILE STRICT;
CREATE or REPLACE FUNCTION new_sync_token( INT8, INT8 ) RETURNS INT8 AS $$
@@ -76,4 +76,4 @@ BEGIN
INSERT INTO sync_tokens(collection_id, sync_token) VALUES( in_collection_id, tmp_int );
RETURN tmp_int;
END
-$$ LANGUAGE 'plpgsql' STRICT;
+$$ LANGUAGE plpgsql STRICT;
diff --git a/dba/rrule_functions-8.1.sql b/dba/rrule_functions-8.1.sql
index 0175c8c6..b5108f2c 100644
--- a/dba/rrule_functions-8.1.sql
+++ b/dba/rrule_functions-8.1.sql
@@ -75,7 +75,7 @@ BEGIN
RETURN result;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Return a SETOF dates within the month of a particular date which match a string of BYDAY rule specifications
@@ -170,7 +170,7 @@ BEGIN
RETURN;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
-- Return a SETOF dates within the month of a particular date which match a string of BYDAY rule specifications
@@ -204,7 +204,7 @@ BEGIN
RETURN;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Return a SETOF dates within the week of a particular date which match a single BYDAY rule specification
@@ -238,12 +238,12 @@ BEGIN
RETURN;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
CREATE or REPLACE FUNCTION event_has_exceptions( TEXT ) RETURNS BOOLEAN AS $$
SELECT $1 ~ E'\nRECURRENCE-ID(;TZID=[^:]+)?:[[:space:]]*[[:digit:]]{8}(T[[:digit:]]{6})?'
-$$ LANGUAGE 'sql' IMMUTABLE STRICT;
+$$ LANGUAGE sql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -261,7 +261,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -277,7 +277,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -293,7 +293,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -309,7 +309,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -356,7 +356,7 @@ BEGIN
END IF;
CLOSE curse;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -396,7 +396,7 @@ BEGIN
RETURN NEXT after;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -428,7 +428,7 @@ BEGIN
END LOOP;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -473,7 +473,7 @@ BEGIN
END LOOP;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -507,7 +507,7 @@ BEGIN
END IF;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -535,7 +535,7 @@ BEGIN
RETURN NEXT after;
END IF;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -632,7 +632,7 @@ BEGIN
END LOOP;
-- RETURN QUERY;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -651,7 +651,7 @@ BEGIN
RETURN NEXT rowvar.d;
END LOOP;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -701,9 +701,9 @@ BEGIN
RETURN FOUND;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
CREATE or REPLACE FUNCTION icalendar_interval_to_SQL( TEXT ) RETURNS interval AS $function$
SELECT CASE WHEN substring($1,1,1) = '-' THEN -1 ELSE 1 END * regexp_replace( regexp_replace($1, '[PT-]', '', 'g'), '([A-Z])', E'\\1 ', 'g')::interval;
-$function$ LANGUAGE 'sql' IMMUTABLE STRICT;
+$function$ LANGUAGE sql IMMUTABLE STRICT;
diff --git a/dba/rrule_functions.sql b/dba/rrule_functions.sql
index 1ea896d4..11691034 100644
--- a/dba/rrule_functions.sql
+++ b/dba/rrule_functions.sql
@@ -75,7 +75,7 @@ BEGIN
RETURN result;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Return a SETOF dates within the month of a particular date which match a string of BYDAY rule specifications
@@ -161,7 +161,7 @@ BEGIN
RETURN;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
-- Return a SETOF dates within the month of a particular date which match a string of BYDAY rule specifications
@@ -195,7 +195,7 @@ BEGIN
RETURN;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
-- Return a SETOF dates within the week of a particular date which match a single BYDAY rule specification
@@ -229,12 +229,12 @@ BEGIN
RETURN;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
CREATE or REPLACE FUNCTION event_has_exceptions( TEXT ) RETURNS BOOLEAN AS $$
SELECT $1 ~ E'\nRECURRENCE-ID(;TZID=[^:]+)?:[[:space:]]*[[:digit:]]{8}(T[[:digit:]]{6})?'
-$$ LANGUAGE 'sql' IMMUTABLE STRICT;
+$$ LANGUAGE sql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -252,7 +252,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -268,7 +268,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -284,7 +284,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -300,7 +300,7 @@ BEGIN
END IF;
RETURN TRUE;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -340,7 +340,7 @@ BEGIN
END IF;
CLOSE curse;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
------------------------------------------------------------------------------------------------------
@@ -380,7 +380,7 @@ BEGIN
RETURN NEXT after;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -410,7 +410,7 @@ BEGIN
RETURN QUERY SELECT d FROM rrule_bysetpos_filter(curse,rrule.bysetpos) d;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -453,7 +453,7 @@ BEGIN
RETURN QUERY SELECT d FROM rrule_bysetpos_filter(curse,rrule.bysetpos) d;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -483,7 +483,7 @@ BEGIN
END IF;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -510,7 +510,7 @@ BEGIN
RETURN NEXT after;
END IF;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -610,7 +610,7 @@ BEGIN
END LOOP;
-- RETURN QUERY;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -626,7 +626,7 @@ BEGIN
maxdate := current_date + '10 years'::interval;
RETURN QUERY SELECT d FROM rrule_event_instances_range( basedate, repeatrule, basedate, maxdate, 300 ) d;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
------------------------------------------------------------------------------------------------------
@@ -676,7 +676,7 @@ BEGIN
RETURN FOUND;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE;
+$$ LANGUAGE plpgsql IMMUTABLE;
-- Create a composite type for the parts of the RRULE.
@@ -707,10 +707,10 @@ BEGIN
END LOOP;
END;
-$$ LANGUAGE 'plpgsql' IMMUTABLE STRICT;
+$$ LANGUAGE plpgsql IMMUTABLE STRICT;
CREATE or REPLACE FUNCTION icalendar_interval_to_SQL( TEXT ) RETURNS interval AS $function$
SELECT CASE WHEN substring($1,1,1) = '-' THEN -1 ELSE 1 END * regexp_replace( regexp_replace($1, '[PT-]', '', 'g'), '([A-Z])', E'\\1 ', 'g')::interval;
-$function$ LANGUAGE 'sql' IMMUTABLE STRICT;
+$function$ LANGUAGE sql IMMUTABLE STRICT;
From e87a5abc266e5bba646e0da3783eceb95378d44e Mon Sep 17 00:00:00 2001
From: Florian Schlichting
+DAViCal Administrator