def testDataTypeBinary(self): if self.getEngine() == 'MySQL': pass #self.helpTestDataType("BLOB",'BINARY',adodbapi.Binary('\x00\x01\xE2\x40')) else: binfld = str2bytes('\x00\x01\xE2\x40') self.helpTestDataType("binary(4)",'BINARY',adodbapi.Binary(binfld)) self.helpTestDataType("varbinary(100)",'BINARY',adodbapi.Binary(binfld)) self.helpTestDataType("image",'BINARY',adodbapi.Binary(binfld))
def testDataTypeBinary(self): binfld = str2bytes('\x00\x01\xE2\x40*') if self.getEngine() == 'PostgreSQL': self.helpTestDataType("bytea", 'BINARY', adodbapi.Binary(binfld)) else: self.helpTestDataType("binary(5)", 'BINARY', adodbapi.Binary(binfld)) self.helpTestDataType("varbinary(100)", 'BINARY', adodbapi.Binary(binfld)) if self.getEngine() != 'MySQL': self.helpTestDataType("image", 'BINARY', adodbapi.Binary(binfld))