Project

General

Profile

« Previous | Next » 

Revision 6204

schemas/py_functions.sql: Changed function languages to plpython3u to match the new installed version. Note that plpythonu is not available on Mac under PostgreSQL 9.1.6.

View differences:

py_functions.sql
45 45
--
46 46

  
47 47
CREATE FUNCTION _date(date text DEFAULT NULL::text, year text DEFAULT NULL::text, month text DEFAULT NULL::text, day text DEFAULT NULL::text) RETURNS text
48
    LANGUAGE plpythonu IMMUTABLE
48
    LANGUAGE plpython3u IMMUTABLE
49 49
    AS $$
50 50
global date, year, month, day
51 51

  
......
173 173
--
174 174

  
175 175
CREATE FUNCTION "_namePart"(first text DEFAULT NULL::text, middle text DEFAULT NULL::text, last text DEFAULT NULL::text) RETURNS text
176
    LANGUAGE plpythonu IMMUTABLE
176
    LANGUAGE plpython3u IMMUTABLE
177 177
    AS $$
178 178
params = dict(first=first, middle=middle, last=last)
179 179

  
......
216 216
--
217 217

  
218 218
CREATE FUNCTION parse_date_range(str_ text) RETURNS text[]
219
    LANGUAGE plpythonu IMMUTABLE STRICT
219
    LANGUAGE plpython3u IMMUTABLE STRICT
220 220
    AS $$
221 221
import re
222 222

  

Also available in: Unified diff