From 7708606321359ef97c864fd54e5c6ed5c45c1c3e Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 13 May 2010 08:23:56 +0000
Subject: [PATCH] - Patch #301798 by Josh Waihi: remove some legacy data type
 and function mapping for PostgreSQL.

---
 includes/database/pgsql/install.inc | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/includes/database/pgsql/install.inc b/includes/database/pgsql/install.inc
index 2223781dcd98..7f63f6cc357b 100644
--- a/includes/database/pgsql/install.inc
+++ b/includes/database/pgsql/install.inc
@@ -84,14 +84,6 @@ function initializeDatabase() {
           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);\'
-- 
GitLab