This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting arrays into database

 
Farakh khan
Ranch Hand
Posts: 833
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My DB tables (Oracle XE)



I am unable to insert record into database properly


It inserts record like this:


Why it inserts the null record into db?

Thanks in anticipation

Best regards
 
Peter Taucher
Ranch Hand
Posts: 174
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Define 'properly'. -> TellTheDetails
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is you have empty valeus in your arrays.
 
Farakh khan
Ranch Hand
Posts: 833
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:My guess is you have empty valeus in your arrays.


Thanks for your favorable reply

Yes, you are right why its getting empty values?

Best regards
 
Farakh khan
Ranch Hand
Posts: 833
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:My guess is you have empty valeus in your arrays.


Still waiting for reply
 
Peter Taucher
Ranch Hand
Posts: 174
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want 'us' to tell 'you' why your data isn't filled? Don't you think that could be difficult without knowing your code or such?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Farakh khan wrote:
Paul Sturrock wrote:My guess is you have empty valeus in your arrays.


Still waiting for reply


Where do you check for null values in your code ??

The only check I can see in the code, is the one below - and it only checks for empty Strings.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Farakh khan wrote:
Paul Sturrock wrote:My guess is you have empty valeus in your arrays.


Thanks for your favorable reply

Yes, you are right why its getting empty values?

Best regards


You'd have to tell us that. From your code, we can't see where the array's speak, read and write are populated, but the data inserted in suggests they have emtpy valeus in them.
 
Farakh khan
Ranch Hand
Posts: 833
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks the problem solved

best regards
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic