@@ -113,8 +113,10 @@ def test_translate_type_from_mysql_to_sqlite_all_valid_columns(self) -> None:
113
113
),
114
114
pytest .param ("CURRENT_TIME" , "DEFAULT_GENERATED" , "DEFAULT CURRENT_TIME" , id = '"CURRENT_TIME"' ),
115
115
pytest .param ("current_time" , "DEFAULT_GENERATED" , "DEFAULT CURRENT_TIME" , id = '"current_time"' ),
116
+ pytest .param ("curtime()" , None , "DEFAULT CURRENT_TIME" , id = '"curtime()"' ),
116
117
pytest .param ("CURRENT_DATE" , "DEFAULT_GENERATED" , "DEFAULT CURRENT_DATE" , id = '"CURRENT_DATE"' ),
117
118
pytest .param ("current_date" , "DEFAULT_GENERATED" , "DEFAULT CURRENT_DATE" , id = '"current_date"' ),
119
+ pytest .param ("curdate()" , None , "DEFAULT CURRENT_DATE" , id = '"curdate()"' ),
118
120
pytest .param (
119
121
"CURRENT_TIMESTAMP" ,
120
122
"DEFAULT_GENERATED" ,
@@ -127,6 +129,8 @@ def test_translate_type_from_mysql_to_sqlite_all_valid_columns(self) -> None:
127
129
"DEFAULT CURRENT_TIMESTAMP" ,
128
130
id = '"current_timestamp"' ,
129
131
),
132
+ pytest .param ("current_timestamp()" , None , "DEFAULT CURRENT_TIMESTAMP" , id = '"current_timestamp()"' ),
133
+ pytest .param ("now()" , None , "DEFAULT CURRENT_TIMESTAMP" , id = '"now()"' ),
130
134
pytest .param (r"""_utf8mb4\'[]\'""" , "DEFAULT_GENERATED" , "DEFAULT '[]'" , id = r"""_utf8mb4\'[]\'""" ),
131
135
pytest .param (r"""_latin1\'abc\'""" , "DEFAULT_GENERATED" , "DEFAULT 'abc'" , id = r"""_latin1\'abc\'""" ),
132
136
pytest .param (r"""_binary\'abc\'""" , "DEFAULT_GENERATED" , "DEFAULT 'abc'" , id = r"""_binary\'abc\'""" ),
0 commit comments