Message5097

Author pjenvey
Recipients kezhifeng, pjenvey
Date 2009-09-04.02:25:02
SpamBayes Score 6.116047e-05
Marked as misclassified No
Message-id <1252031102.98.0.521189452423.issue1451@psf.upfronthosting.co.za>
In-reply-to
Content
This is pretty much expected when using JDBC as MySQL treats variables 
as VARBINARY, which most JDBC drivers (definitely MySQL's) return byte[] 
for, so we return the Python analog, an array.array of bytes. You can 
convert this to a string via bytes.tostring()

A byte array here is also currently more efficient than plain Python 
strings for Jython as our str is backed by java.lang.String instead of 
being a simple byte bucket like CPython's

When we change that (in Jython 3, or possibly before) we might want to 
consider changing this behavior, but probably not until then
History
Date User Action Args
2009-09-04 02:25:02pjenveysetmessageid: <1252031102.98.0.521189452423.issue1451@psf.upfronthosting.co.za>
2009-09-04 02:25:02pjenveysetrecipients: + pjenvey, kezhifeng
2009-09-04 02:25:02pjenveylinkissue1451 messages
2009-09-04 02:25:02pjenveycreate