def test__ascii__field(self): q = Q.from_(self.t).select(fn.Ascii(self.t.foo)) self.assertEqual("SELECT ASCII(\"foo\") FROM \"abc\"", str(q))
def test__ascii__str(self): q = Q.select(fn.Ascii('2')) self.assertEqual("SELECT ASCII('2')", str(q))
def test__ascii__int(self): q = Q.select(fn.Ascii(2)) self.assertEqual("SELECT ASCII(2)", str(q))
def test__ascii__field(self): q = Q.from_(self.t).select(fn.Ascii(self.t.foo)) self.assertEqual('SELECT ASCII("foo") FROM "abc"', str(q))