Skip to content

Commit 18f9b84

Browse files
authored
remove schema and table name from SpecialColumns and update test (#109)
1 parent 33d15a9 commit 18f9b84

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

info.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3167,8 +3167,6 @@ WHERE a.attnum > 0 and c.relname like 'testuktab';
31673167
*/
31683168
initPQExpBuffer(&columns_query);
31693169
printfPQExpBuffer(&columns_query, "select NULL as \"SCOPE\","
3170-
"n.nspname as \"SCHEMA_NAME\","
3171-
"c.relname as \"TABLE_NAME\","
31723170
"a.attname AS \"COLUMN_NAME\","
31733171
"t.typname AS \"DATA_TYPE\","
31743172
"t.typname AS \"TYPE_NAME\","

test/expected/catalogfunctions.out

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ contrib_regression public lo_test_tab id 4 int4
8080
contrib_regression public lo_test_tab large_data -4 lo
8181
contrib_regression public test_special id 4 int4
8282
contrib_regression public test_special ival 4 int4
83-
contrib_regression public test_special_pkey id 4 int4
83+
contrib_regression public test_special_id id 4 int4
8484
contrib_regression public test_special_ui ival 4 int4
8585
contrib_regression public testforeign c1 4 int4
8686
contrib_regression public testmatview id 4 int4
@@ -107,7 +107,7 @@ contrib_regression public testtab1 id UPDATE YES
107107
contrib_regression public testtab1 id SELECT YES
108108
contrib_regression public testtab1 id REFERENCES YES
109109
contrib_regression public testtab1 id INSERT YES
110-
Check for SQLSpecialColumns ROWVER
110+
Check for SQLSpecialColumns
111111
Result set metadata:
112112
SCOPE: SMALLINT(5) digits: 0, nullable
113113
COLUMN_NAME: VARCHAR(128) digits: 0, nullable
@@ -119,11 +119,9 @@ DECIMAL_DIGITS: SMALLINT(5) digits: 0, nullable
119119
PSEUDO_COLUMN: SMALLINT(5) digits: 0, nullable
120120
Result set:
121121
NULL xmin 4 xid 10 4 0 2
122-
Check for SQLSpecialColumns ROWID
122+
Check for SQLSpecialColumns
123123
Result set metadata:
124124
SCOPE: LONGVARCHAR(8190) digits: 0, nullable
125-
SCHEMA_NAME: VARCHAR(63) digits: 0, not nullable
126-
TABLE_NAME: VARCHAR(63) digits: 0, not nullable
127125
COLUMN_NAME: VARCHAR(63) digits: 0, not nullable
128126
DATA_TYPE: VARCHAR(63) digits: 0, not nullable
129127
TYPE_NAME: VARCHAR(63) digits: 0, not nullable
@@ -132,8 +130,8 @@ BUFFER_LENGTH: SMALLINT(5) digits: 0, not nullable
132130
DECIMAL_DIGITS: INTEGER(10) digits: 0, nullable
133131
PSEUDO_COLUMN: INTEGER(10) digits: 0, nullable
134132
Result set:
135-
NULL public test_special id int4 int4 4 4 0 1
136-
NULL public test_special ival int4 int4 4 4 0 1
133+
NULL id int4 int4 4 4 0 1
134+
NULL ival int4 int4 4 4 0 1
137135
Check for SQLStatistics
138136
Result set metadata:
139137
TABLE_CAT: VARCHAR(128) digits: 0, nullable

0 commit comments

Comments
 (0)