You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/interfaces/odbc/info.c
+58-33Lines changed: 58 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -677,7 +677,7 @@ SQLGetInfo(
677
677
{
678
678
result=SQL_SUCCESS_WITH_INFO;
679
679
conn->errornumber=STMT_TRUNCATED;
680
-
conn->errormsg="The buffer was too small for the result.";
680
+
conn->errormsg="The buffer was too small for tthe InfoValue.";
681
681
}
682
682
}
683
683
}
@@ -2441,6 +2441,7 @@ SQLPrimaryKeys(
2441
2441
{
2442
2442
staticchar*func="SQLPrimaryKeys";
2443
2443
StatementClass*stmt= (StatementClass*) hstmt;
2444
+
ConnectionClass*conn;
2444
2445
TupleNode*row;
2445
2446
RETCODEresult;
2446
2447
intseq=0;
@@ -2451,6 +2452,7 @@ SQLPrimaryKeys(
2451
2452
SDWORDattname_len;
2452
2453
charpktab[MAX_TABLE_LEN+1];
2453
2454
Int2result_cols;
2455
+
intqno, qstart, qend;
2454
2456
2455
2457
mylog("%s: entering...stmt=%u\n", func, stmt);
2456
2458
@@ -2511,37 +2513,6 @@ SQLPrimaryKeys(
2511
2513
returnSQL_ERROR;
2512
2514
}
2513
2515
2514
-
#if0
2515
-
sprintf(tables_query, "select distinct on (attnum) a2.attname, a2.attnum from pg_attribute a1, pg_attribute a2, pg_class c, pg_index i where c.relname = '%s_pkey' AND c.oid = i.indexrelid AND a1.attrelid = c.oid AND a2.attrelid = c.oid AND (i.indkey[0] = a1.attnum OR i.indkey[1] = a1.attnum OR i.indkey[2] = a1.attnum OR i.indkey[3] = a1.attnum OR i.indkey[4] = a1.attnum OR i.indkey[5] = a1.attnum OR i.indkey[6] = a1.attnum OR i.indkey[7] = a1.attnum) order by a2.attnum", pktab);
2516
-
#else
2517
-
2518
-
/*
2519
-
* Simplified query to remove assumptions about number of possible
2520
-
* index columns. Courtesy of Tom Lane - thomas 2000-03-21
0 commit comments