dbTalk Databases Forums  

[BUGS] BUG #1402: getPrecision don't work

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1402: getPrecision don't work in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
raxfar
 
Posts: n/a

Default [BUGS] BUG #1402: getPrecision don't work - 01-17-2005 , 12:16 PM







The following bug has been logged online:

Bug reference: 1402
Logged by: raxfar
Email address: raxfar (AT) yahoo (DOT) com.tw
PostgreSQL version: 8.0.0-rc2
Operating system: windows 2000
Description: getPrecision don't work
Details:

have
java.sql.ResultSetMetaData _oMetaData.getPrecision(i)
java.sql.ResultSetMetaData _oMetaData.getScale(i)
methods not to get Precision and Scale

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #1402: getPrecision don't work - 01-17-2005 , 04:34 PM








On Sat, 15 Jan 2005, raxfar wrote:
Quote:
Bug reference: 1402
PostgreSQL version: 8.0.0-rc2
Description: getPrecision don't work

java.sql.ResultSetMetaData _oMetaData.getPrecision(i)
java.sql.ResultSetMetaData _oMetaData.getScale(i)
methods not to get Precision and Scale

What underlying data type are you trying to call these methods on? You
need to provide some more information to describe what you are doing.

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #3  
Old   
Oliver Jowett
 
Posts: n/a

Default Re: [BUGS] BUG #1402: getPrecision don't work - 01-17-2005 , 04:41 PM



raxfar wrote:
Quote:
The following bug has been logged online:

Bug reference: 1402
Logged by: raxfar
Email address: raxfar (AT) yahoo (DOT) com.tw
PostgreSQL version: 8.0.0-rc2
Operating system: windows 2000
Description: getPrecision don't work
Details:

have
java.sql.ResultSetMetaData _oMetaData.getPrecision(i)
java.sql.ResultSetMetaData _oMetaData.getScale(i)
methods not to get Precision and Scale
What JDBC driver version are you using?

What is the type of the columns that you are calling getPrecision() and
getScale() on? Do you have an example schema and query I can try out?

What are the results you get? What are the results you expected to get?

-O

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #4  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #1402: getPrecision don't work - 01-18-2005 , 09:35 AM





On Tue, 18 Jan 2005, Woung raxfar wrote:

Quote:
CREATE TABLE users
(
s_no varchar(6),
userid varchar(20)
)
I don't believe getPrecision is intended to operate on non-numeric fields.
Perhaps you are looking for getColumnDisplaySize() ?

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.