Hi,
 I'm connecting to a DB2 database via DB2Connect and
COM.ibm.db2.jdbc.app.DB2Driver

My problem is that sometimes, when requesting the column name and column
label of
the returning ResultSet fields, both methods returns a kind of description
of
the column intead of the column name itself.

for example:
        
          ResultSetMetaData rm = rs.getMetaData();
        for(int i = 1; i <= rm.getColumnCount(); i++)
        {
          System.out.println("column label=\"" + rm.getColumnLabel(i) +
"\"");
          System.out.println("column name=\"" + rm.getColumnName(i) +
"\"\n");
        }

output is:
 column label="DISTINTIVO CLASE DOCUMENTO    " 
 column name="DISTINTIVO CLASE DOCUMENTO    "
 
 column label="CODIGO MUNICIPIO  PARCELA A   " 
 column name="CODIGO MUNICIPIO  PARCELA A   "

wich seems to be a description of the fields content stored in the DB2. But
the real
field names expected here was "INDICE" and "CODMUNA"

can someone givme an idea of what's happening here?

thanks in advance


Gabriel Roldán

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to