On Nov 15, 2009, at 9:52 AM, Jacek Kałucki wrote:
> Here is the output:
> fldType = <type 'str'>
> val = BM6[binary data here]...
OK, that's what it should be.
> It seems like this error is produced only when filling empty blob
> field,
> which initially is type of string.
> There are no further errors on using already filled blobs.
First off, this is not an error, just a warning to the developer.
Try adding this case to the code in dCursorMixin.py:
969 elif isinstance(val, dNoEscQuoteStr):
970 # Sometimes you want to set it to a sql function, equation, ect.
971 ignore = True
972 elif fld in nonUpdateFields:
973 # don't worry so much if this is just a calculated field.
974 ignore = True
elif (fldType is str) and (type(val) is buffer):
ignore = True
975 else:
976 # This can also happen with a new record, since we just stuff
the
977 # fields full of empty strings.
978 ignore = (rec.get(keyField, None) in self._newRecords)
It should silence the message, as this case is one that should be
ignored. Try adding those lines and let me know how things work then.
Note that the line numbers assume you've removed the previous debug
print statements.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]