[pywin32-checkins] pywin32 CHANGES.txt,1.53,1.54
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Vernon C. <kf...@us...> - 2010-07-31 06:20:55
|
Update of /cvsroot/pywin32/pywin32 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27251 Modified Files: CHANGES.txt Log Message: Edit CHANGES.txt for adodbapi v2.4.0 Index: CHANGES.txt =================================================================== RCS file: /cvsroot/pywin32/pywin32/CHANGES.txt,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** CHANGES.txt 3 May 2010 08:41:02 -0000 1.53 --- CHANGES.txt 31 Jul 2010 06:20:47 -0000 1.54 *************** *** 8,11 **** --- 8,28 ---- Since build 214: ---------------- + * Update adodbapi to version 2.4.0 -- in this version, + "fetchall()" and "fetchmany()" return an SQLrows object + ...which emulates a sequence of SQLrow objects. + "fetchone()" or the cursor's "next()" method return an SQLrow object. + An SQLrow object emulates a tuple of data fields. + An SQLrow object also appears to have an attribute for each column of data. + therefore... + >>> import adodbapi + >>> myConnection = adodbapi.connection('someDSN') + >>> cur = myConnection.cursor() + >>> cur.execute("select name, rank, serialNumber from soldiers") + >>> row = cur.fetchone() + >>> assert row[0] == row['name'] + >>> assert row[1] == row.rank + >>> rows = cur.fecthall() + >>> assert rows[4,'serialNumber'] == rows[4][2] + * Update adodbapi to version 2.3.0 -- this is includes major refactoring and specifically adds features for django support, including the ability for the |