Revision 4479
Added by Aaron Marcuse-Kubitza over 12 years ago
schemas/functions.sql | ||
---|---|---|
165 | 165 |
|
166 | 166 |
|
167 | 167 |
-- |
168 |
-- Name: _nullIf(anyelement, text, text); Type: FUNCTION; Schema: functions; Owner: - |
|
169 |
-- |
|
170 |
|
|
171 |
CREATE FUNCTION "_nullIf"(value anyelement, "null" text, type text) RETURNS anyelement |
|
172 |
LANGUAGE sql IMMUTABLE |
|
173 |
AS $_$ |
|
174 |
SELECT functions."_nullIf"($1, $2, $3::functions.datatype) |
|
175 |
$_$; |
|
176 |
|
|
177 |
|
|
178 |
-- |
|
168 | 179 |
-- Name: join_strs_transform(text, text, text); Type: FUNCTION; Schema: functions; Owner: - |
169 | 180 |
-- |
170 | 181 |
|
Also available in: Unified diff
schemas/functions.sql: Added _nullIf() overload where the type param has type text, to handle cases where row-based import auto-casts all args to text in response to a 'could not determine polymorphic type because input has type "unknown"' error