summaryrefslogtreecommitdiffstats
path: root/sqlglot/executor/env.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sqlglot/executor/env.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlglot/executor/env.py b/sqlglot/executor/env.py
index 9f63100..bf2941c 100644
--- a/sqlglot/executor/env.py
+++ b/sqlglot/executor/env.py
@@ -202,4 +202,5 @@ ENV = {
"CURRENTTIME": datetime.datetime.now,
"CURRENTDATE": datetime.date.today,
"STRFTIME": null_if_any(lambda fmt, arg: datetime.datetime.fromisoformat(arg).strftime(fmt)),
+ "TRIM": null_if_any(lambda this, e=None: this.strip(e)),
}