Exemple #1
0
    def load_dialect_impl(self, dialect):
        if dialect.name == 'postgresql':
            return dialect.type_descriptor(postgresql.MACADDR())

        return dialect.type_descriptor(types.CHAR(16))
 def test_convert_MACADDR(self, converter):
     prop = make_property(postgresql.MACADDR())
     field = converter.property2field(prop)
     assert type(field) == fields.Str
Exemple #3
0
	def load_dialect_impl(self, dialect):
		if _is_pgsql(dialect):
			return postgresql.MACADDR()
		return self.impl