[pywin32-checkins] pywin32/adodbapi adodbapi.py, 1.3, 1.4 readme.txt, 1.3, 1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Vernon C. <kf...@us...> - 2008-09-05 18:49:21
|
Update of /cvsroot/pywin32/pywin32/adodbapi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5560 Modified Files: adodbapi.py readme.txt Log Message: v.2.2.1 bugfix for earlier 2.1 bugfix. Do not truncate string values loaded into numeric columns Index: adodbapi.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/adodbapi/adodbapi.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** adodbapi.py 29 Aug 2008 14:30:26 -0000 1.3 --- adodbapi.py 5 Sep 2008 18:49:30 -0000 1.4 *************** *** 1,3 **** ! """adodbapi v2.2 - A python DB API 2.0 interface to Microsoft ADO Copyright (C) 2002 Henrik Ekelund --- 1,3 ---- ! """adodbapi v2.2.1 - A python DB API 2.0 interface to Microsoft ADO Copyright (C) 2002 Henrik Ekelund *************** *** 628,632 **** print 'Parameter %d ADOtype %d, python %s' % (parmIndx,p.Type,type(elem)) if p.Direction in [adParamInput,adParamInputOutput,adParamUnknown]: ! tp = type(elem) if tp in dateconverter.types: if not defaultParameterList and p.Type in adoDateTimeTypes: --- 628,632 ---- print 'Parameter %d ADOtype %d, python %s' % (parmIndx,p.Type,type(elem)) if p.Direction in [adParamInput,adParamInputOutput,adParamUnknown]: ! tp = type(elem) # python type if tp in dateconverter.types: if not defaultParameterList and p.Type in adoDateTimeTypes: *************** *** 644,649 **** p.Value = elem else: ! L = min(L,p.Size) #v2.1 Cole limit data to defined size ! p.Value = elem[:L] #v2.1 Jevon & v2.1 Cole if L>0: #v2.1 Cole something does not like p.Size as Zero p.Size = L #v2.1 Jevon --- 644,652 ---- p.Value = elem else: ! if p.Type in adoStringTypes: #v2.2.1 Cole ! L = min(L,p.Size) #v2.1 Cole limit data to defined size ! p.Value = elem[:L] #v2.1 Jevon & v2.1 Cole ! else: ! p.Value = elem # dont limit if db column is numeric if L>0: #v2.1 Cole something does not like p.Size as Zero p.Size = L #v2.1 Jevon Index: readme.txt =================================================================== RCS file: /cvsroot/pywin32/pywin32/adodbapi/readme.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** readme.txt 29 Aug 2008 14:30:55 -0000 1.3 --- readme.txt 5 Sep 2008 18:49:30 -0000 1.4 *************** *** 22,25 **** --- 22,28 ---- Iron Python 2.0b4 or higher. + Whats new in version 2.2.1 + 1. Bugfix for v2.1 item 6: but do not correct the string length if the output column is not a string. + Whats new in version 2.2 1. Runs on Iron Python 2.0b4 with a few restrictions. It will not handle Longs or BLOB correcly, |