MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_distinct_on

Method test_distinct_on

test/sql/test_compiler.py:2002–2009  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2000 case.fail()
2001
2002 def test_distinct_on(self):
2003 with testing.expect_deprecated(
2004 "DISTINCT ON is currently supported only by the PostgreSQL "
2005 "dialect"
2006 ):
2007 self.assert_compile(
2008 select("*").distinct(table1.c.myid), "SELECT DISTINCT *"
2009 )
2010
2011 def test_where_empty(self):
2012 self.assert_compile(

Callers

nothing calls this directly

Calls 3

selectFunction · 0.90
assert_compileMethod · 0.80
distinctMethod · 0.45

Tested by

no test coverage detected