Skip to content
Snippets Groups Projects
Commit 77086063 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #301798 by Josh Waihi: remove some legacy data type and function mapping for PostgreSQL.

parent d29ccd17
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);\'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment