New update breaks my code

5 visualizaciones (últimos 30 días)
David Goldsmith
David Goldsmith el 11 de Oct. de 2011
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?

Respuestas (1)

David Hruska
David Hruska el 31 de En. de 2012
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 comentario
David Goldsmith
David Goldsmith el 31 de En. de 2012
Wow, thanks, I'll give it a try.

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by