matthiasblaesing commented on pull request #2695:
URL: https://github.com/apache/netbeans/pull/2695#issuecomment-763962917


   I reread the spec and no, NetBeans behaves correctly. See here 
(https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSetMetaData.html#getPrecision-int-):
   
   > Get the designated column's specified column size. For numeric data, this 
is the maximum precision. **For character data, this is the length in 
characters**. For datetime datatypes, this is the length in characters of the 
String representation (assuming the maximum allowed precision of the fractional 
seconds component). For binary data, this is the length in bytes. For the ROWID 
datatype, this is the length in bytes. 0 is returned for data types where the 
column size is not applicable.
   
   So netbeans does the right thing - sorry, that I did not find that on the 
first pass, but on second read this is an issue in the DB driver.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to