pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed[ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names
3+ messages / 1 participants
[nested] [flat]
* [ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names
@ 2006-04-26 17:24 noreply@pgfoundry.org
0 siblings, 0 replies; 3+ messages in thread
From: noreply@pgfoundry.org @ 2006-04-26 17:24 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000620, was opened at 26-04-2006 17:24
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000620&group_id=1000125
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: SQLStatistics returns UNKNOWN instead of real column names
Initial Comment:
Created By: den <NOSPAM> intech.ru
Description:
STEPS TO REPRODUCE
1. CREATE TABLE temp_table (a int)
2. ALTER TABLE temp_table DROP COLUMN a
3. ALTER TABLE temp_table ADD COLUMN a int
4. CREATE INDEX temp_index ON temp_table (a)
CAUSE OF FAILURE
Source code has a petty hole based on the erroneous interpretation of the
column index stored in the pg_index.indkey. In this case the column index is
not a sequence number of column, but value of the pg_attribute.attnum.
Listing of source code: info.c (psqlodbc-08.00.0102)
....
2824 if (fields_vector[i] == OID_ATTNUM)
2825 {
2826 set_tuplefield_string(&row->tuple[8], "oid");
2827 mylog("%s: column name = oid\n", func);
2828 }
->2829 else if (fields_vector[i] < 0 || fields_vector[i] > total_columns)
2830 {
2831 set_tuplefield_string(&row->tuple[8], "UNKNOWN");
2832 mylog("%s: column name = UNKNOWN\n", func);
2833 }
2834 else
2835 {
->2836 set_tuplefield_string(&row->tuple[8],
column_names[fields_vector[i] - 1]);
2837 mylog("%s: column name = '%s'\n", func,
column_names[fields_vector[i] - 1]);
2838 }
...
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000620&group_id=1000125
^ permalink raw reply [nested|flat] 3+ messages in thread
* [ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names
@ 2006-04-27 03:44 noreply@pgfoundry.org
0 siblings, 0 replies; 3+ messages in thread
From: noreply@pgfoundry.org @ 2006-04-27 03:44 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000620, was opened at 2006-04-26 17:24
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000620&group_id=1000125
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: SQLStatistics returns UNKNOWN instead of real column names
Initial Comment:
Created By: den <NOSPAM> intech.ru
Description:
STEPS TO REPRODUCE
1. CREATE TABLE temp_table (a int)
2. ALTER TABLE temp_table DROP COLUMN a
3. ALTER TABLE temp_table ADD COLUMN a int
4. CREATE INDEX temp_index ON temp_table (a)
CAUSE OF FAILURE
Source code has a petty hole based on the erroneous interpretation of the
column index stored in the pg_index.indkey. In this case the column index is
not a sequence number of column, but value of the pg_attribute.attnum.
Listing of source code: info.c (psqlodbc-08.00.0102)
....
2824 if (fields_vector[i] == OID_ATTNUM)
2825 {
2826 set_tuplefield_string(&row->tuple[8], "oid");
2827 mylog("%s: column name = oid\n", func);
2828 }
->2829 else if (fields_vector[i] < 0 || fields_vector[i] > total_columns)
2830 {
2831 set_tuplefield_string(&row->tuple[8], "UNKNOWN");
2832 mylog("%s: column name = UNKNOWN\n", func);
2833 }
2834 else
2835 {
->2836 set_tuplefield_string(&row->tuple[8],
column_names[fields_vector[i] - 1]);
2837 mylog("%s: column name = '%s'\n", func,
column_names[fields_vector[i] - 1]);
2838 }
...
----------------------------------------------------------------------
>Comment By: Hiroshi Inoue (hinoue)
Date: 2006-04-27 03:44
Message:
Please try the experimental version.
Please download it from this page and replace
the dll(psqlodbc35w.dll) by the one at
http://www.geocities.jp/inocchichichi/psqlodbc/index.html
.
regards,
Hiroshi Inoue
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000620&group_id=1000125
^ permalink raw reply [nested|flat] 3+ messages in thread
* [ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names
@ 2006-05-14 09:28 noreply@pgfoundry.org
0 siblings, 0 replies; 3+ messages in thread
From: noreply@pgfoundry.org @ 2006-05-14 09:28 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000620, was opened at 2006-04-26 17:24
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000620&group_id=1000125
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: SQLStatistics returns UNKNOWN instead of real column names
Initial Comment:
Created By: den <NOSPAM> intech.ru
Description:
STEPS TO REPRODUCE
1. CREATE TABLE temp_table (a int)
2. ALTER TABLE temp_table DROP COLUMN a
3. ALTER TABLE temp_table ADD COLUMN a int
4. CREATE INDEX temp_index ON temp_table (a)
CAUSE OF FAILURE
Source code has a petty hole based on the erroneous interpretation of the
column index stored in the pg_index.indkey. In this case the column index is
not a sequence number of column, but value of the pg_attribute.attnum.
Listing of source code: info.c (psqlodbc-08.00.0102)
....
2824 if (fields_vector[i] == OID_ATTNUM)
2825 {
2826 set_tuplefield_string(&row->tuple[8], "oid");
2827 mylog("%s: column name = oid\n", func);
2828 }
->2829 else if (fields_vector[i] < 0 || fields_vector[i] > total_columns)
2830 {
2831 set_tuplefield_string(&row->tuple[8], "UNKNOWN");
2832 mylog("%s: column name = UNKNOWN\n", func);
2833 }
2834 else
2835 {
->2836 set_tuplefield_string(&row->tuple[8],
column_names[fields_vector[i] - 1]);
2837 mylog("%s: column name = '%s'\n", func,
column_names[fields_vector[i] - 1]);
2838 }
...
----------------------------------------------------------------------
>Comment By: Dave Page (dpage)
Date: 2006-05-14 09:28
Message:
Yes, this will make it's way into the distro. Thanks for testing
----------------------------------------------------------------------
Comment By: Nobody (None)
Date: 2006-05-03 12:11
Message:
with this dll now it's ok
the default dll with comes with the instalation give me the error that i reported.
will this changes made in the default distribution?
kopp
----------------------------------------------------------------------
Comment By: Hiroshi Inoue (hinoue)
Date: 2006-04-27 03:44
Message:
Please try the experimental version.
Please download it from this page and replace
the dll(psqlodbc35w.dll) by the one at
http://www.geocities.jp/inocchichichi/psqlodbc/index.html
.
regards,
Hiroshi Inoue
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000620&group_id=1000125
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-05-14 09:28 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-26 17:24 [ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names noreply@pgfoundry.org
2006-04-27 03:44 [ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names noreply@pgfoundry.org
2006-05-14 09:28 [ psqlodbc-Bugs-1000620 ] SQLStatistics returns UNKNOWN instead of real column names noreply@pgfoundry.org
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox