27/11/2008, 06:20
|
| | Fecha de Ingreso: septiembre-2008
Mensajes: 6
Antigüedad: 16 años, 3 meses Puntos: 0 | |
Respuesta: ODBC:No recibo NULL de los campos vacios con un getString Bueno llevo toda la mañana peleando con esto, y justo despues de colgar el post buscando en la pagina de sun encuentro esto:
Synopsis Error! ResultSet.wasNull() did not return true after reading null value
Category jdbc:jdbc_odbc_bridge
Reported Against ladybird-beta
Release Fixed 1.3.0_03, 1.3.1(Bug ID:2041352) , 1.4(merlin-beta) (Bug ID:2041353)
State 10-Fix Delivered, Verified, bug
Priority: 2-High
Related Bugs
Submit Date 10-MAR-2001
Description
Problem Description:
--------------------
This bug was discovered on ladybird (jdk 1.3.1) while testing the fix
for bug 4417105 by Sybase.
Please find below the details:
The new bridge does fix the problem we reported.
However, further testing of the bridge reveals that after reading a SQL
NULL value by calling ResultSet.getString(), calling ResultSet.wasNull()
returns false. This is incorrect behavior.
The problem can be corrected by explicitly setting ResultSet.lastColumnNull
at every return point in JdbcOdbcResultSet.getString(). Look for the
comment "ADDED BY xxxxx " in the accompanying copy of the
JdbcOdbcResultSet.java file.
Note that this same problem appears to be present in the other getXXX()
functions such as getBytes(), getDate(), etc. A similar fix should also be
made to those functions as well.
I have attached an updated copy of the original BridgeBug.zip file which
contains patched source to the bridge which fixes the problem with wasNull
() and getString().
Espero que os pueda servir de ayuda. |