bruno.b...@gmail.com
unread,Feb 5, 2013, 8:47:11 AM2/5/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
I have the following query to a MySQL server running on Linux:
con := (DBConnection new) dsn: 'Orbeon';
uid: 'orbeon'; pwd: 'xxxx';
connect.
rs := con query: 'select xml from orbeon_form_definition'.
The table "orbeon_form_definition" has 2 rows but answer an empty DBResultSet.
The problem is that XML field is a long field and the query fails here:
DBField>>asString
asString
"Private - Answer the receiver's buffer as a <String>."
^buffer copyStringFrom: 1 to: self length
buffer size is 65536 but "self length" answer 95236.
The fix is:
DBField>>asString
asString
"Private - Answer the receiver's buffer as a <String>."
^(buffer size < self length)
ifTrue: [buffer asString]
ifFalse: [buffer copyStringFrom: 1 to: self length]
It is working now, but anyone see any problem with this fix.
Regards,
Bruno