diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index 4e45f65..68960d5 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -135,7 +135,8 @@ def group_comparison(tlist):
                                 T.Name, T.Number, T.Number.Float,
                                 T.Number.Integer, T.Literal,
                                 T.Literal.Number.Integer, T.Name.Placeholder)
-                or isinstance(token, (sql.Identifier, sql.Parenthesis))
+                or isinstance(token, (sql.Identifier, sql.Parenthesis,
+                                      sql.Function))
                 or (token.ttype is T.Keyword
                     and token.value.upper() in ['NULL', ]))
     _group_left_right(tlist, T.Operator.Comparison, None, sql.Comparison,

diff --git a/tests/test_grouping.py b/tests/test_grouping.py
index e846176..a6c4028 100644
--- a/tests/test_grouping.py
+++ b/tests/test_grouping.py
@@ -325,6 +325,29 @@ def test_comparison_with_strings():  # issue148
     assert p.tokens[0].right.ttype == T.String.Single
 
 
+def test_comparison_with_functions():  # issue230
+    p = sqlparse.parse('foo = DATE(bar.baz)')[0]
+    assert len(p.tokens) == 1
+    assert isinstance(p.tokens[0], sql.Comparison)
+    assert len(p.tokens[0].tokens) == 5
+    assert p.tokens[0].left.value == 'foo'
+    assert p.tokens[0].right.value == 'DATE(bar.baz)'
+    
+    p = sqlparse.parse('DATE(foo.bar) = DATE(bar.baz)')[0]
+    assert len(p.tokens) == 1
+    assert isinstance(p.tokens[0], sql.Comparison)
+    assert len(p.tokens[0].tokens) == 5
+    assert p.tokens[0].left.value == 'DATE(foo.bar)'
+    assert p.tokens[0].right.value == 'DATE(bar.baz)'
+    
+    p = sqlparse.parse('DATE(foo.bar) = bar.baz')[0]
+    assert len(p.tokens) == 1
+    assert isinstance(p.tokens[0], sql.Comparison)
+    assert len(p.tokens[0].tokens) == 5
+    assert p.tokens[0].left.value == 'DATE(foo.bar)'
+    assert p.tokens[0].right.value == 'bar.baz'
+
+
 @pytest.mark.parametrize('start', ['FOR', 'FOREACH'])
 def test_forloops(start):
     p = sqlparse.parse('%s foo in bar LOOP foobar END LOOP' % start)[0]

Functions are not grouped into a Comparison
I.e. `foo = DATE(bar.baz)` is not grouped.
tests/test_grouping.py::test_comparison_with_functions
tests/test_grouping.py::TestGrouping::test_alias tests/test_grouping.py::TestGrouping::test_alias_case tests/test_grouping.py::TestGrouping::test_alias_returns_none tests/test_grouping.py::TestGrouping::test_assignment tests/test_grouping.py::TestGrouping::test_comments tests/test_grouping.py::TestGrouping::test_comparison_exclude tests/test_grouping.py::TestGrouping::test_function tests/test_grouping.py::TestGrouping::test_function_not_in tests/test_grouping.py::TestGrouping::test_identifier_as_invalid tests/test_grouping.py::TestGrouping::test_identifier_extended tests/test_grouping.py::TestGrouping::test_identifier_function tests/test_grouping.py::TestGrouping::test_identifier_invalid tests/test_grouping.py::TestGrouping::test_identifier_list tests/test_grouping.py::TestGrouping::test_identifier_list_case tests/test_grouping.py::TestGrouping::test_identifier_list_other tests/test_grouping.py::TestGrouping::test_identifier_list_with_inline_comments tests/test_grouping.py::TestGrouping::test_identifier_name_wildcard tests/test_grouping.py::TestGrouping::test_identifier_wildcard tests/test_grouping.py::TestGrouping::test_identifiers tests/test_grouping.py::TestGrouping::test_idlist_function tests/test_grouping.py::TestGrouping::test_parenthesis tests/test_grouping.py::TestGrouping::test_typecast tests/test_grouping.py::TestGrouping::test_varchar tests/test_grouping.py::TestGrouping::test_where tests/test_grouping.py::TestStatement::test_get_type tests/test_grouping.py::test_identifier_with_operators tests/test_grouping.py::test_identifier_with_op_trailing_ws tests/test_grouping.py::test_identifier_with_string_literals tests/test_grouping.py::test_identifier_consumes_ordering tests/test_grouping.py::test_comparison_with_keywords tests/test_grouping.py::test_comparison_with_floats tests/test_grouping.py::test_comparison_with_parenthesis tests/test_grouping.py::test_comparison_with_strings tests/test_grouping.py::test_forloops[FOR] tests/test_grouping.py::test_forloops[FOREACH] tests/test_grouping.py::test_nested_for tests/test_grouping.py::test_begin tests/test_grouping.py::test_nested_begin tests/test_grouping.py::test_aliased_column_without_as tests/test_grouping.py::test_qualified_function tests/test_grouping.py::test_aliased_function_without_as tests/test_grouping.py::test_aliased_literal_without_as