I have a little problem with my Sqlite app. I'm showing on my main screen some text from the table "x" in the field "y". Now i'm trying to show text from the same table but from a different field wich is not created. I create it and add some text, then test it on the iPhone simulator and I get the error :
No such column : "nameOfMyTab"..
Do I have to do something to let xCode know that I modified my database ?
p.s (I'm not creating an editable copy of my DB so that can't be the prob)
Thanks alot !
Last edited by snowboarderz69; 03-22-2010 at 11:01 PM.
I have a little problem with my Sqlite app. I'm showing on my main screen some text from the table "x" in the field "y". Now i'm trying to show text from the same table but from a different field wich is not created. I create it and add some text, then test it on the iPhone simulator and I get the error :
No such column : "nameOfMyTab"..
Do I have to do something to let xCode know that I modified my database ?
p.s (I'm not creating an editable copy of my DB so that can't be the prob)
Thanks alot !
If you're using CoreCata you have to update the schema to match.
__________________
regards
Oliver Drobnik Cocoanetics - Our DNA is programmed in Objective-C.
Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
Everything looks fine from here. Could you have a simple misspelling of the column name "destination" in the actual database? I think it might be case sensitive, so "Destination" would not match.
Damn I just found out what was going on... My select/update/insert/delete statements where STATIC variable so they were keeping the old data's. I should have saw them before !
Thanks alot everyone for your help, I love how people on this forum help each/other, it's nice