K
Koen
Hi,
first of all, the machine setup
server 1:
- UDB2 7.2.5; COUNTRY=1, location = US, IBM1250 codepage
- Locale: US English; Regional Settings: English; Keyboard: Dutch;
decimal separator: .
server 2:
- UDB2 7.2.5 Client Tools
- Websphere 4.0.5
- Locale: US English; Regional Settings: English; Keyboard: Dutch;
decimal separator: .
db2cli.ini has PATCH2=15 on both servers.
We run a webapplication. For example, when reading contract data, the
following happens:
- the webinterface on server 2 requests the result of a stored
procedure on server 1
--> when we run the Stored Procedure on server 1, we see that the
bookvalue from a car = 10000.21 (yes, with a dot)
--> when we do rs.getFloat or rs.getDouble to put the values in a
bizness object in the java code, we see 10000
We assume that the 10000.21 is placed in the resultset. It however
seems to be modified there. When we set 10000.21 in the bizness
object by ourself, it works.
==> Data read on server 1 becomes a decimal when read or seen on
server 2.
Now, when we post 10000.22 as new bookvalue on server 2, we can write
10000.22 in the database on server 1 without a problem!!
We use a jdbc connection, jdbc2 is in use.
We've searched more than 16 hours for a solution yesterday. I hope
someone here is smarter, or has a more original input then we can
produce at the moment.
Anything that could help will be grateful appreciated.
Does the locale setting during installation matters?
Thanks in advance,
Koen
first of all, the machine setup
server 1:
- UDB2 7.2.5; COUNTRY=1, location = US, IBM1250 codepage
- Locale: US English; Regional Settings: English; Keyboard: Dutch;
decimal separator: .
server 2:
- UDB2 7.2.5 Client Tools
- Websphere 4.0.5
- Locale: US English; Regional Settings: English; Keyboard: Dutch;
decimal separator: .
db2cli.ini has PATCH2=15 on both servers.
We run a webapplication. For example, when reading contract data, the
following happens:
- the webinterface on server 2 requests the result of a stored
procedure on server 1
--> when we run the Stored Procedure on server 1, we see that the
bookvalue from a car = 10000.21 (yes, with a dot)
--> when we do rs.getFloat or rs.getDouble to put the values in a
bizness object in the java code, we see 10000
We assume that the 10000.21 is placed in the resultset. It however
seems to be modified there. When we set 10000.21 in the bizness
object by ourself, it works.
==> Data read on server 1 becomes a decimal when read or seen on
server 2.
Now, when we post 10000.22 as new bookvalue on server 2, we can write
10000.22 in the database on server 1 without a problem!!
We use a jdbc connection, jdbc2 is in use.
We've searched more than 16 hours for a solution yesterday. I hope
someone here is smarter, or has a more original input then we can
produce at the moment.
Anything that could help will be grateful appreciated.
Does the locale setting during installation matters?
Thanks in advance,
Koen