Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e7ffdd44
Commit
e7ffdd44
authored
May 17, 2001
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1) Decrease the size of some buffers.
2) Repair broken SQLStatistics().
parent
77f27757
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
src/interfaces/odbc/info.c
src/interfaces/odbc/info.c
+12
-12
src/interfaces/odbc/psqlodbc.h
src/interfaces/odbc/psqlodbc.h
+4
-1
No files found.
src/interfaces/odbc/info.c
View file @
e7ffdd44
...
...
@@ -1104,7 +1104,7 @@ SQLTables(
HSTMT
htbl_stmt
;
RETCODE
result
;
char
*
tableType
;
char
tables_query
[
STD_STATEMENT
_LEN
];
char
tables_query
[
INFO_INQUIRY
_LEN
];
char
table_name
[
MAX_INFO_STRING
],
table_owner
[
MAX_INFO_STRING
],
relkind_or_hasrules
[
MAX_INFO_STRING
];
...
...
@@ -1422,7 +1422,7 @@ SQLColumns(
TupleNode
*
row
;
HSTMT
hcol_stmt
;
StatementClass
*
col_stmt
;
char
columns_query
[
STD_STATEMENT
_LEN
];
char
columns_query
[
INFO_INQUIRY
_LEN
];
RETCODE
result
;
char
table_owner
[
MAX_INFO_STRING
],
table_name
[
MAX_INFO_STRING
],
...
...
@@ -1862,7 +1862,7 @@ SQLSpecialColumns(
ConnInfo
*
ci
;
HSTMT
hcol_stmt
;
StatementClass
*
col_stmt
;
char
columns_query
[
STD_STATEMENT
_LEN
];
char
columns_query
[
INFO_INQUIRY
_LEN
];
RETCODE
result
;
char
relhasrules
[
MAX_INFO_STRING
];
...
...
@@ -2003,7 +2003,7 @@ SQLStatistics(
{
static
char
*
func
=
"SQLStatistics"
;
StatementClass
*
stmt
=
(
StatementClass
*
)
hstmt
;
char
index_query
[
STD_STATEMENT
_LEN
];
char
index_query
[
INFO_INQUIRY
_LEN
];
HSTMT
hindx_stmt
;
RETCODE
result
;
char
*
table_name
;
...
...
@@ -2171,12 +2171,12 @@ SQLStatistics(
indx_stmt
=
(
StatementClass
*
)
hindx_stmt
;
sprintf
(
index_query
,
"select c.relname, i.indkey, i.indisunique"
",
x.indisclustered, a.amname, i
.relhasrules"
" from pg_index
x, pg_class i, pg_class c
, pg_am a"
" where
c
.relname = '%s'"
" and
c.oid = x
.indrelid"
" and
x.indexrelid = i
.oid"
" and
i
.relam = a.oid"
",
i.indisclustered, a.amname, c
.relhasrules"
" from pg_index
i, pg_class c, pg_class d
, pg_am a"
" where
d
.relname = '%s'"
" and
d.oid = i
.indrelid"
" and
i.indexrelid = c
.oid"
" and
c
.relam = a.oid"
,
table_name
);
result
=
SQLExecDirect
(
hindx_stmt
,
index_query
,
strlen
(
index_query
));
...
...
@@ -2455,7 +2455,7 @@ SQLPrimaryKeys(
int
seq
=
0
;
HSTMT
htbl_stmt
;
StatementClass
*
tbl_stmt
;
char
tables_query
[
STD_STATEMENT
_LEN
];
char
tables_query
[
INFO_INQUIRY
_LEN
];
char
attname
[
MAX_INFO_STRING
];
SDWORD
attname_len
;
char
pktab
[
MAX_TABLE_LEN
+
1
];
...
...
@@ -2641,7 +2641,7 @@ SQLForeignKeys(
StatementClass
*
tbl_stmt
;
RETCODE
result
,
keyresult
;
char
tables_query
[
STD_STATEMENT
_LEN
];
char
tables_query
[
INFO_INQUIRY
_LEN
];
char
trig_deferrable
[
2
];
char
trig_initdeferred
[
2
];
char
trig_args
[
1024
];
...
...
src/interfaces/odbc/psqlodbc.h
View file @
e7ffdd44
...
...
@@ -5,7 +5,7 @@
*
* Comments: See "notice.txt" for copyright and license information.
*
* $Id: psqlodbc.h,v 1.4
2 2001/05/01 00:47:06
inoue Exp $
* $Id: psqlodbc.h,v 1.4
3 2001/05/17 02:56:37
inoue Exp $
*
*/
...
...
@@ -191,6 +191,9 @@ typedef struct QueryInfo_
#define PG_NUMERIC_MAX_PRECISION 1000
#define PG_NUMERIC_MAX_SCALE 1000
#define INFO_INQUIRY_LEN 8192
/* this seems sufficiently big for
queries used in info.c inoue 2001/05/17 */
#include "misc.h"
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment