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
b210b162
Commit
b210b162
authored
Apr 10, 2002
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent an infinite loop of error reporting.
parent
f2d70d32
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
5 deletions
+21
-5
src/interfaces/odbc/connection.c
src/interfaces/odbc/connection.c
+4
-1
src/interfaces/odbc/descriptor.h
src/interfaces/odbc/descriptor.h
+2
-2
src/interfaces/odbc/info.c
src/interfaces/odbc/info.c
+12
-1
src/interfaces/odbc/psqlodbc.h
src/interfaces/odbc/psqlodbc.h
+2
-1
src/interfaces/odbc/statement.c
src/interfaces/odbc/statement.c
+1
-0
No files found.
src/interfaces/odbc/connection.c
View file @
b210b162
...
...
@@ -610,7 +610,7 @@ CC_connect(ConnectionClass *self, char do_password)
int
areq
=
-
1
;
int
beresp
;
static
char
msgbuffer
[
ERROR_MSG_LENGTH
];
char
salt
[
5
];
char
salt
[
5
]
,
notice
[
512
]
;
static
char
*
func
=
"CC_connect"
;
#ifdef MULTIBYTE
...
...
@@ -893,6 +893,9 @@ another_version_retry:
case
'Z'
:
/* Backend is ready for new query (6.4) */
ReadyForQuery
=
TRUE
;
break
;
case
'N'
:
/* Notices may come */
while
(
SOCK_get_string
(
sock
,
notice
,
sizeof
(
notice
)
-
1
))
;
break
;
default:
self
->
errormsg
=
"Unexpected protocol character during authentication"
;
self
->
errornumber
=
CONN_INVALID_AUTHENTICATION
;
...
...
src/interfaces/odbc/descriptor.h
View file @
b210b162
...
...
@@ -5,7 +5,7 @@
*
* Comments: See "notice.txt" for copyright and license information.
*
* $Id: descriptor.h,v 1.
3 2002/04/02 10:50:4
4 inoue Exp $
* $Id: descriptor.h,v 1.
4 2002/04/10 08:18:5
4 inoue Exp $
*
*/
...
...
@@ -17,7 +17,7 @@
typedef
struct
{
COL_INFO
*
col_info
;
/* cached SQLColumns info for this table */
char
schema
[
MAX_
TABLE
_LEN
+
1
];
char
schema
[
MAX_
SCHEMA
_LEN
+
1
];
char
name
[
MAX_TABLE_LEN
+
1
];
char
alias
[
MAX_TABLE_LEN
+
1
];
}
TABLE_INFO
;
...
...
src/interfaces/odbc/info.c
View file @
b210b162
...
...
@@ -342,6 +342,8 @@ PGAPI_GetInfo(
case
SQL_MAX_OWNER_NAME_LEN
:
/* ODBC 1.0 */
len
=
2
;
value
=
0
;
if
(
conn
->
schema_support
)
value
=
MAX_SCHEMA_LEN
;
break
;
case
SQL_MAX_PROCEDURE_NAME_LEN
:
/* ODBC 1.0 */
...
...
@@ -484,12 +486,21 @@ PGAPI_GetInfo(
break
;
case
SQL_OWNER_TERM
:
/* ODBC 1.0 */
p
=
"owner"
;
if
(
conn
->
schema_support
)
p
=
"schema"
;
else
p
=
"owner"
;
break
;
case
SQL_OWNER_USAGE
:
/* ODBC 2.0 */
len
=
4
;
value
=
0
;
if
(
conn
->
schema_support
)
value
=
SQL_OU_DML_STATEMENTS
|
SQL_OU_TABLE_DEFINITION
|
SQL_OU_INDEX_DEFINITION
|
SQL_OU_PRIVILEGE_DEFINITION
;
break
;
case
SQL_POS_OPERATIONS
:
/* ODBC 2.0 */
...
...
src/interfaces/odbc/psqlodbc.h
View file @
b210b162
...
...
@@ -5,7 +5,7 @@
*
* Comments: See "notice.txt" for copyright and license information.
*
* $Id: psqlodbc.h,v 1.6
3 2002/04/02 10:50:49
inoue Exp $
* $Id: psqlodbc.h,v 1.6
4 2002/04/10 08:18:53
inoue Exp $
*
*/
...
...
@@ -124,6 +124,7 @@ typedef UInt4 Oid;
#define BYTELEN 8
#define VARHDRSZ sizeof(Int4)
#define MAX_SCHEMA_LEN 32
#define MAX_TABLE_LEN 32
#define MAX_COLUMN_LEN 32
#define MAX_CURSOR_LEN 32
...
...
src/interfaces/odbc/statement.c
View file @
b210b162
...
...
@@ -301,6 +301,7 @@ SC_Constructor(void)
rv
->
inaccurate_result
=
FALSE
;
rv
->
miscinfo
=
0
;
rv
->
updatable
=
FALSE
;
rv
->
error_recsize
=
-
1
;
}
return
rv
;
}
...
...
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