odbc - Is there any way to get the leading interval precision for a column through DBI in Perl? -


i need able following column attributes in perl script column in odbc table :

  • sql type
  • precision
  • scale
  • interval leading precision
  • typename
  • whether signed or unsigned
  • nullability
  • whether it's case sensitive
  • whether it's auto-unique
  • updatability

right i'm using dbi, , seems can most of information, i'm stumped getting interval leading precision. dbi expose this?

that pod (which wrote) sqlcolattributes. happened ms deprecated sqlcolattributes , replaced sqlcolattribute. btw, there typo in pod should $sth not $dbh (i've fixed that). colattributes superceded dbi attributes in cases e.g., precision. cannot pass new sqlcolattribute types sqlcolattributes dbd::odbc knows ones odbc defined sqlcolattributes , odbc allowed driver-specific attributes (for dbd::odbc not possibly know type of) has trap them , issue "driver-specific column attributes not supported" message.

see sqlcolattribute lists values can pass colattribute. you'll have in sql*.h header files values. however, don't see interval leading precision in list. see sql_desc_precision says "for data types sql_type_time, sql_type_timestamp, , interval data types represent time interval, value applicable precision of fractional seconds component.". i'm unsure mean "interval leading precision".

what odbc driver using?


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -