> why are these two methods of the ResultSetMetaData returns 
> always the same
> value?
> For example:
> if I execute the next query:
>               select ID AS "Identifier" from mytable
> The resulting ResultSetMetaData's getColumnName() should return the
> "Identifier" String, and the getColumnLabel() should return "ID".
> 
> But, after this query, each methods returns the "Identifier" string.
> I've tested it with the latest (7.4.04.00d) driver, as well 
> as with the
> 7.3.00.29a driver.
> 
> Is this a bug, or a feature? Will it be implemented correctly 
> in the near
> future?
> Is there a workaround to be able to get the REAL name of the column ?

The network protocol of SAP DB supplies only the column label, not the 
column name. So it's probably a bug, but it's not easily corrected.

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org/


> -----Original Message-----
> From: Késmárki László [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 24, 2003 6:46 PM
> To: sapdb
> Subject: [JDBC] getColumnName() and getColumnLabel() returns 
> same value
> 
> 
> Hello all,
> 
> why are these two methods of the ResultSetMetaData returns 
> always the same
> value?
> For example:
> if I execute the next query:
>               select ID AS "Identifier" from mytable
> The resulting ResultSetMetaData's getColumnName() should return the
> "Identifier" String, and the getColumnLabel() should return "ID".
> 
> But, after this query, each methods returns the "Identifier" string.
> I've tested it with the latest (7.4.04.00d) driver, as well 
> as with the
> 7.3.00.29a driver.
> 
> Is this a bug, or a feature? Will it be implemented correctly 
> in the near
> future?
> Is there a workaround to be able to get the REAL name of the column ?
> 
> Regards,
> Attila Kesmarki
> 
> 
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
> 
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to