diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-13 08:23:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-13 08:23:56 +0000 |
commit | 7708606321359ef97c864fd54e5c6ed5c45c1c3e (patch) | |
tree | 8970da30cb8f870c740c3e4d922e8e3bcb2cd902 /includes/database/pgsql/install.inc | |
parent | d29ccd1764aa4519f9f35d42b73e4a644618d728 (diff) | |
download | brdo-7708606321359ef97c864fd54e5c6ed5c45c1c3e.tar.gz brdo-7708606321359ef97c864fd54e5c6ed5c45c1c3e.tar.bz2 |
- Patch #301798 by Josh Waihi: remove some legacy data type and function mapping for PostgreSQL.
Diffstat (limited to 'includes/database/pgsql/install.inc')
-rw-r--r-- | includes/database/pgsql/install.inc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/includes/database/pgsql/install.inc b/includes/database/pgsql/install.inc index 2223781dc..7f63f6cc3 100644 --- a/includes/database/pgsql/install.inc +++ b/includes/database/pgsql/install.inc @@ -84,14 +84,6 @@ class DatabaseTasks_pgsql extends DatabaseTasks { LANGUAGE \'sql\'' ); } - db_query('CREATE OR REPLACE FUNCTION "if"(boolean, text, text) RETURNS text AS - \'SELECT CASE WHEN $1 THEN $2 ELSE $3 END;\' - LANGUAGE \'sql\'' - ); - db_query('CREATE OR REPLACE FUNCTION "if"(boolean, integer, integer) RETURNS integer AS - \'SELECT CASE WHEN $1 THEN $2 ELSE $3 END;\' - LANGUAGE \'sql\'' - ); db_query('CREATE OR REPLACE FUNCTION "substring_index"(text, text, integer) RETURNS text AS \'SELECT array_to_string((string_to_array($1, $2)) [1:$3], $2);\' |