2017-12-07 12:13:00 +01:00
|
|
|
@@
|
2019-04-28 17:13:29 +02:00
|
|
|
/* Avoid running this transformation on the empty_to_null function itself */
|
|
|
|
position p : script:python() { p[0].current_element != "empty_to_null" };
|
2017-12-07 12:13:00 +01:00
|
|
|
expression s;
|
|
|
|
@@
|
2019-04-28 17:13:29 +02:00
|
|
|
|
|
|
|
- isempty@p(s) ? NULL : s
|
2017-12-07 12:13:00 +01:00
|
|
|
+ empty_to_null(s)
|