DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 8th, 2005, 01:24 PM
localt localt is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 37 localt User rank is Corporal (100 - 500 Reputation Level)localt User rank is Corporal (100 - 500 Reputation Level)localt User rank is Corporal (100 - 500 Reputation Level)localt User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 37 m 48 sec
Reputation Power: 6
Informix JDBC problem

I'm using Informix JDBC (both 2.21JC6 and 3.0JC1) and VARCHAR fields causing me some pain. It seems like the getString() return the value with trailing spaces to match the max length of the column. When I do "select x,length(x) from test" I get x as 'a ' and length as 1... Any one knows something about it?!

Reply With Quote
  #2  
Old September 6th, 2005, 12:54 AM
radubogdan radubogdan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 radubogdan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 35 sec
Reputation Power: 0
varchar problem too

Hello!

I'm having trouble with varchar too. In my database, I have a table with varchar(250). When I use IBExpert to query the table, the value returned is correct. But when I use jdbc to query, it takes me only the first 100 characters.

In the past, the field type was varchar(100). But I changed it to varchar(250), restarted service, computer, eclipse, but it still doesn't work.

Do you have a solution?
Regards,
Bogdan

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Informix JDBC problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway