New update breaks my code

3 次查看(过去 30 天)
David Goldsmith
David Goldsmith 2011-10-11
Hi! Hoping I can get answer/soln. here faster than via tech support. update.m (in the database toolbox) suffered some extensive changes and now my update queries--which work fine in R2010a--are returning the following error:
Cell contents reference from a non-cell array object.
Error in database/update (line 150) tmp = data{i,j};
Error in database/update (line 59) update(connect,tableName,fieldNames,data(i,:),whereClause{i})
Line 150 in the db toolbox Version 3.7 (the one that came w/ 2010a, i.e., the version that works) is completely different than it is in the current version (3.10) as indeed is all the surrounding code. The bottom line is that whereas before update didn't care whether something at this particular time was a cell array, now it does (with no corresponding change in the inputs that I'm supplying). The new code is so substantially different that I'm loathe to try to figure out what's amiss; the new db toolbox release notes have this to say:
"update lets you update images, Booleans, doubles, and strings in a manner consistent with fastinsert."
That's it!
Any one know what the heck is going on and/or how I need to modify my inputs so my code works w/ the new update?

回答(1 个)

David Hruska
David Hruska 2012-1-31
I realize that this question is quite old, but in case anyone else comes across the same issue, this is likely due to this bug in R2011b:

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by