Exemple #1
0
    def test__last(self):
        q = Q.from_('abc').select(fn.Last(F('foo')))

        self.assertEqual('SELECT LAST(\"foo\") FROM \"abc\"', str(q))
Exemple #2
0
    def test__last(self):
        q = Q.from_("abc").select(fn.Last(F("foo")))

        self.assertEqual('SELECT LAST("foo") FROM "abc"', str(q))