diff --git a/regina/utility/sql_util.py b/regina/utility/sql_util.py index de06c9b..b399705 100644 --- a/regina/utility/sql_util.py +++ b/regina/utility/sql_util.py @@ -1,5 +1,11 @@ import sqlite3 as sql """Various utilities""" + +def replace_null(s): + if not s: + return "None" + return s + def sanitize(s): if type(s) != str: return s return s.replace("'", r"''").strip(" ")