Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

after modifying a record, it can not be seen, Why ?

 
ruilin yang
Ranch Hand
Posts: 334
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modified a record for reservation, then I can not seen the record any more for new searches.
Please help ?
I used the modify method supplied in the data class.
Thanks
Ruilin
 
ravindra janapreddy
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am faced with the similar situation.
I could successfully modify the record but the record is not seen after that at all.
Please resolve it.
Thanks in advance
Ravi
 
Sai Prasad
Ranch Hand
Posts: 560
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you know you successfully modified it? I suggest you to put some debug statements to know for sure you are modifying the data. Calling modify() worked for me with the Sun supplied version.
Also there is a possibility that you are modifying one db.db file and using other db.db file for searching flights. This can happen if you don't take care of creating/finding Data instance for remote/local mode of operation properly.
[ June 18, 2002: Message edited by: Sai Prasad ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After you modify, can you see data ever again, even if you restart your app. I had had that, and what was happening was I was modifying the db.db file but incorrectly, it was actually corrupting the db.db file.
Make sure your DataInfo class you pass to modify is correct.
Mark
 
Ramesh kumaar
Ranch Hand
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
This is because replacing the depericated method getBytes(x,y,z,..) with getBytes(). WE need to write a piece of code there to fix this problem.
-rameshkumar
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic