New update breaks my code

조회 수: 1 (최근 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:
  댓글 수: 1
David Goldsmith
David Goldsmith 2012년 1월 31일
Wow, thanks, I'll give it a try.

댓글을 달려면 로그인하십시오.

카테고리

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