Bug #35044 | Optimize Column Width | ||
---|---|---|---|
Submitted: | 4 Mar 2008 17:33 | Modified: | 5 Mar 2008 17:14 |
Reporter: | Jerome Asselin | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / ODBC | Severity: | S4 (Feature request) |
Version: | 3.51.23 | OS: | Windows (XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | FLAG_FIELD_LENGTH |
[4 Mar 2008 17:33]
Jerome Asselin
[5 Mar 2008 8:46]
Tonci Grgin
Hi Jerome and thanks for your feature request. 3.51.18 (6-Aug-2007) * Lengths returned by SQLColumns(), SQLDescribeCol(), and SQLColAttribute() were often incorrect. These lengths should now conform to the ODBC specification. FLAG_FIELD_LENGTH no longer has any effect. The default behavior was incorrect. (Bug #27862) 3.51.20 (7-Sep-2007) * Removed checkbox in setup dialog for FLAG_FIELD_LENGTH ("Don't Optimize Column Width"), which was removed from the driver in 3.51.18. I don't believe that this will be reintroduced but I'll set report to "Verified" on accounts that "Optimize Column Width" checkbox is truly removed.
[5 Mar 2008 17:14]
Jerome Asselin
Thank you for your reply. I've been seeking another workaround in light of the fact that the old behavior will not reintroduced (not even as an option). I can use CAST or CONVERT in the SQL query to optimize column width on the fly. WORKAROUND #2 # OLD QUERY: select * from test; # NEW QUERY: select convert(a,char(4)) as a from test; This leads to the desired result at the expense of having to list the column names and pre-calculate the optimal column width for TEXT columns. If someone finds a better workaround, please post.