Fix for Python 2.5.

Added a unit test for single character columns.

Updated download URL.
This commit is contained in:
adustman
2006-10-27 23:33:35 +00:00
parent 1699cc8eb1
commit cfd4a94682
3 changed files with 12 additions and 2 deletions

View File

@ -75,6 +75,16 @@ class test_MySQLdb(test_capabilities.DatabaseTest):
c.execute("DROP PROCEDURE test_sp")
c.execute('drop table %s' % (self.table))
def test_small_CHAR(self):
# Character data
def generator(row,col):
i = (row*col+62)%256
if i == 62: return ''
if i == 63: return None
return chr(i)
self.check_data_integrity(
('col1 char(1)','col2 char(1)'),
generator)
if __name__ == '__main__':
if test_MySQLdb.leak_test: