The 'precision' slot in cursor.description is always
0, even when it should be otherwise (in the case of
NUMERIC/DECIMAL fields, for example).
This is because the function XSQLDA2describe makes no
attempt to determine the precision, but always sets it
to zero.
Unfortunately, the precision is not easily gleaned
from the XSQLDVAR structure (as is scale, for
instance). Instead, it appears necessary to query the
system tables in order to determine the field's
precision.
It seems a shame to waste computational effort
querying the system tables when the 'precision' figure
in cursor.description will not usually even be used;
perhaps there's an alternative?
Nobody/Anonymous
General problems
None
Public
|
Date: 2002-06-09 22:45 Logged In: YES |
|
Date: 2002-05-16 13:28 Logged In: YES |
|
Date: 2002-05-12 16:15 Logged In: YES |
|
Date: 2002-05-08 02:11 Logged In: YES |
|
Date: 2002-05-07 13:11 Logged In: YES |
|
Date: 2002-05-07 13:08 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2002-06-09 22:45 | woodsplitter |
| close_date | 2002-05-12 16:15 | 2002-06-09 22:45 | woodsplitter |
| status_id | Closed | 2002-05-16 13:28 | woodsplitter |
| status_id | Open | 2002-05-12 16:15 | woodsplitter |
| resolution_id | None | 2002-05-12 16:15 | woodsplitter |
| close_date | - | 2002-05-12 16:15 | woodsplitter |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use