Mercurial > p > mysql-python > mysqldb-2
comparison MySQLdb/__init__.py @ 4:b5a377255eea MySQLdb
Merge changes from MySQLdb-1.2 branch (448-455)
author | adustman |
---|---|
date | Tue, 24 Oct 2006 19:52:31 +0000 |
parents | e48810735f11 |
children | 3f4c6af70e52 |
comparison
equal
deleted
inserted
replaced
3:df195ac92df6 | 4:b5a377255eea |
---|---|
64 TIMESTAMP = DBAPISet([FIELD_TYPE.TIMESTAMP, FIELD_TYPE.DATETIME]) | 64 TIMESTAMP = DBAPISet([FIELD_TYPE.TIMESTAMP, FIELD_TYPE.DATETIME]) |
65 DATETIME = TIMESTAMP | 65 DATETIME = TIMESTAMP |
66 ROWID = DBAPISet() | 66 ROWID = DBAPISet() |
67 | 67 |
68 def Binary(x): | 68 def Binary(x): |
69 from array import array | 69 return str(x) |
70 return array('c', x) | |
71 | 70 |
72 def Connect(*args, **kwargs): | 71 def Connect(*args, **kwargs): |
73 """Factory function for connections.Connection.""" | 72 """Factory function for connections.Connection.""" |
74 from connections import Connection | 73 from connections import Connection |
75 return Connection(*args, **kwargs) | 74 return Connection(*args, **kwargs) |