From be33e8ff4eed68ad217f9ef6ad535206df4129f8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 25 Oct 2022 18:01:47 +0200 Subject: Merging upstream version 9.0.3. Signed-off-by: Daniel Baumann --- sqlglot/time.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sqlglot/time.py') diff --git a/sqlglot/time.py b/sqlglot/time.py index 16314c5..de28ac0 100644 --- a/sqlglot/time.py +++ b/sqlglot/time.py @@ -14,6 +14,8 @@ def format_time(string, mapping, trie=None): mapping: Dictionary of time format to target time format trie: Optional trie, can be passed in for performance """ + if not string: + return None start = 0 end = 1 size = len(string) -- cgit v1.2.3