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
9d244ddb
Commit
9d244ddb
authored
Feb 11, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of source.
parent
71f2b6f0
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
91 additions
and
74 deletions
+91
-74
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-misc.c
+6
-6
src/interfaces/odbc/convert.c
src/interfaces/odbc/convert.c
+3
-0
src/interfaces/odbc/dlg_specific.c
src/interfaces/odbc/dlg_specific.c
+2
-0
src/interfaces/odbc/drvconn.c
src/interfaces/odbc/drvconn.c
+1
-0
src/interfaces/odbc/execute.c
src/interfaces/odbc/execute.c
+1
-0
src/interfaces/odbc/info.c
src/interfaces/odbc/info.c
+2
-1
src/interfaces/odbc/isql.h
src/interfaces/odbc/isql.h
+6
-12
src/interfaces/odbc/options.c
src/interfaces/odbc/options.c
+1
-0
src/interfaces/odbc/qresult.c
src/interfaces/odbc/qresult.c
+2
-0
src/interfaces/odbc/resource.h
src/interfaces/odbc/resource.h
+60
-53
src/interfaces/odbc/setup.c
src/interfaces/odbc/setup.c
+1
-0
src/interfaces/odbc/socket.c
src/interfaces/odbc/socket.c
+2
-2
src/interfaces/odbc/statement.c
src/interfaces/odbc/statement.c
+1
-0
src/interfaces/odbc/tuplelist.c
src/interfaces/odbc/tuplelist.c
+3
-0
No files found.
src/interfaces/libpq/fe-misc.c
View file @
9d244ddb
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.4
4 2001/02/10 02:31:30 tgl
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.4
5 2001/02/11 04:56:57 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
...
src/interfaces/odbc/convert.c
View file @
9d244ddb
...
@@ -233,6 +233,7 @@ copy_and_convert_field(StatementClass * stmt, Int4 field_type, void *value, Int2
...
@@ -233,6 +233,7 @@ copy_and_convert_field(StatementClass * stmt, Int4 field_type, void *value, Int2
*********************************************************************/
*********************************************************************/
switch
(
field_type
)
switch
(
field_type
)
{
{
/*
/*
* $$$ need to add parsing for date/time/timestamp strings in
* $$$ need to add parsing for date/time/timestamp strings in
* PG_TYPE_CHAR,VARCHAR $$$
* PG_TYPE_CHAR,VARCHAR $$$
...
@@ -462,6 +463,7 @@ copy_and_convert_field(StatementClass * stmt, Int4 field_type, void *value, Int2
...
@@ -462,6 +463,7 @@ copy_and_convert_field(StatementClass * stmt, Int4 field_type, void *value, Int2
}
}
else
else
{
{
/*
/*
* for SQL_C_CHAR, it's probably ok to leave currency symbols in.
* for SQL_C_CHAR, it's probably ok to leave currency symbols in.
* But to convert to numeric types, it is necessary to get rid of
* But to convert to numeric types, it is necessary to get rid of
...
@@ -1228,6 +1230,7 @@ convert_escape(char *value)
...
@@ -1228,6 +1230,7 @@ convert_escape(char *value)
}
}
else
if
(
strcmp
(
key
,
"fn"
)
==
0
)
else
if
(
strcmp
(
key
,
"fn"
)
==
0
)
{
{
/*
/*
* Function invocation Separate off the func name, skipping
* Function invocation Separate off the func name, skipping
* trailing whitespace.
* trailing whitespace.
...
...
src/interfaces/odbc/dlg_specific.c
View file @
9d244ddb
...
@@ -49,6 +49,7 @@ extern GLOBAL_VALUES globals;
...
@@ -49,6 +49,7 @@ extern GLOBAL_VALUES globals;
void
void
SetDlgStuff
(
HWND
hdlg
,
ConnInfo
*
ci
)
SetDlgStuff
(
HWND
hdlg
,
ConnInfo
*
ci
)
{
{
/*
/*
* If driver attribute NOT present, then set the datasource name and
* If driver attribute NOT present, then set the datasource name and
* description
* description
...
@@ -773,6 +774,7 @@ getGlobalDefaults(char *section, char *filename, char override)
...
@@ -773,6 +774,7 @@ getGlobalDefaults(char *section, char *filename, char override)
/* Dont allow override of an override! */
/* Dont allow override of an override! */
if
(
!
override
)
if
(
!
override
)
{
{
/*
/*
* ConnSettings is stored in the driver section and per datasource
* ConnSettings is stored in the driver section and per datasource
* for override
* for override
...
...
src/interfaces/odbc/drvconn.c
View file @
9d244ddb
...
@@ -215,6 +215,7 @@ dialog:
...
@@ -215,6 +215,7 @@ dialog:
if
(
szConnStrOut
)
if
(
szConnStrOut
)
{
{
/*
/*
* Return the completed string to the caller. The correct method
* Return the completed string to the caller. The correct method
* is to only construct the connect string if a dialog was put up,
* is to only construct the connect string if a dialog was put up,
...
...
src/interfaces/odbc/execute.c
View file @
9d244ddb
...
@@ -437,6 +437,7 @@ SQLCancel(
...
@@ -437,6 +437,7 @@ SQLCancel(
*/
*/
if
(
stmt
->
data_at_exec
<
0
)
if
(
stmt
->
data_at_exec
<
0
)
{
{
/*
/*
* MAJOR HACK for Windows to reset the driver manager's cursor
* MAJOR HACK for Windows to reset the driver manager's cursor
* state: Because of what seems like a bug in the Odbc driver
* state: Because of what seems like a bug in the Odbc driver
...
...
src/interfaces/odbc/info.c
View file @
9d244ddb
...
@@ -1324,6 +1324,7 @@ SQLTables(
...
@@ -1324,6 +1324,7 @@ SQLTables(
result
=
SQLFetch
(
htbl_stmt
);
result
=
SQLFetch
(
htbl_stmt
);
while
((
result
==
SQL_SUCCESS
)
||
(
result
==
SQL_SUCCESS_WITH_INFO
))
while
((
result
==
SQL_SUCCESS
)
||
(
result
==
SQL_SUCCESS_WITH_INFO
))
{
{
/*
/*
* Determine if this table name is a system table. If treating
* Determine if this table name is a system table. If treating
* system tables as regular tables, then no need to do this test.
* system tables as regular tables, then no need to do this test.
...
...
src/interfaces/odbc/isql.h
View file @
9d244ddb
...
@@ -204,26 +204,20 @@ extern "C"
...
@@ -204,26 +204,20 @@ extern "C"
SWORD
cbCursorMax
,
SWORD
cbCursorMax
,
SWORD
FAR
*
pcbCursor
);
SWORD
FAR
*
pcbCursor
);
RETCODE
SQL_API
SQLNumResultCols
(
HSTMT
hstmt
,
RETCODE
SQL_API
SQLNumResultCols
(
HSTMT
hstmt
,
SWORD
FAR
*
pccol
);
SWORD
FAR
*
pccol
);
RETCODE
SQL_API
SQLPrepare
(
HSTMT
hstmt
,
RETCODE
SQL_API
SQLPrepare
(
HSTMT
hstmt
,
UCHAR
FAR
*
szSqlStr
,
UCHAR
FAR
*
szSqlStr
,
SDWORD
cbSqlStr
);
SDWORD
cbSqlStr
);
RETCODE
SQL_API
SQLRowCount
(
HSTMT
hstmt
,
RETCODE
SQL_API
SQLRowCount
(
HSTMT
hstmt
,
SDWORD
FAR
*
pcrow
);
SDWORD
FAR
*
pcrow
);
RETCODE
SQL_API
SQLSetCursorName
(
HSTMT
hstmt
,
RETCODE
SQL_API
SQLSetCursorName
(
HSTMT
hstmt
,
UCHAR
FAR
*
szCursor
,
UCHAR
FAR
*
szCursor
,
SWORD
cbCursor
);
SWORD
cbCursor
);
RETCODE
SQL_API
SQLTransact
(
HENV
henv
,
RETCODE
SQL_API
SQLTransact
(
HENV
henv
,
HDBC
hdbc
,
HDBC
hdbc
,
UWORD
fType
);
UWORD
fType
);
RETCODE
SQL_API
SQLSetParam
(
HSTMT
hstmt
,
RETCODE
SQL_API
SQLSetParam
(
HSTMT
hstmt
,
UWORD
ipar
,
UWORD
ipar
,
SWORD
fCType
,
SWORD
fCType
,
SWORD
fSqlType
,
SWORD
fSqlType
,
UDWORD
cbColDef
,
UDWORD
cbColDef
,
...
...
src/interfaces/odbc/options.c
View file @
9d244ddb
...
@@ -307,6 +307,7 @@ SQLSetConnectOption(
...
@@ -307,6 +307,7 @@ SQLSetConnectOption(
switch
(
fOption
)
switch
(
fOption
)
{
{
/*
/*
* Statement Options (apply to all stmts on the connection and
* Statement Options (apply to all stmts on the connection and
* become defaults for new stmts)
* become defaults for new stmts)
...
...
src/interfaces/odbc/qresult.c
View file @
9d244ddb
...
@@ -384,6 +384,7 @@ QR_next_tuple(QResultClass * self)
...
@@ -384,6 +384,7 @@ QR_next_tuple(QResultClass * self)
}
}
else
else
{
{
/*
/*
* See if we need to fetch another group of rows. We may be being
* See if we need to fetch another group of rows. We may be being
* called from send_query(), and if so, don't send another fetch,
* called from send_query(), and if so, don't send another fetch,
...
@@ -616,6 +617,7 @@ QR_read_tuple(QResultClass * self, char binary)
...
@@ -616,6 +617,7 @@ QR_read_tuple(QResultClass * self, char binary)
}
}
else
else
{
{
/*
/*
* NO, the field is not null. so get at first the length of
* NO, the field is not null. so get at first the length of
* the field (four bytes)
* the field (four bytes)
...
...
src/interfaces/odbc/resource.h
View file @
9d244ddb
//{{NO_DEPENDENCIES}}
//
// Microsoft Developer Studio generated include file.
{
{
NO_DEPENDENCIES
}
}
//Microsoft Developer Studio generated include file.
// Used by psqlodbc.rc
// Used by psqlodbc.rc
//
//
#define IDS_BADDSN 1
#define IDS_BADDSN 1
...
@@ -48,8 +54,9 @@
...
@@ -48,8 +54,9 @@
#define DRV_KSQO 1055
#define DRV_KSQO 1055
#define DS_PG64 1057
#define DS_PG64 1057
// Next default values for new objects
//Next default values for new
//
objects
//
#ifdef APSTUDIO_INVOKED
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 104
#define _APS_NEXT_RESOURCE_VALUE 104
...
...
src/interfaces/odbc/setup.c
View file @
9d244ddb
...
@@ -264,6 +264,7 @@ ConfigDlgProc(HWND hdlg,
...
@@ -264,6 +264,7 @@ ConfigDlgProc(HWND hdlg,
switch
(
GET_WM_COMMAND_ID
(
wParam
,
lParam
))
switch
(
GET_WM_COMMAND_ID
(
wParam
,
lParam
))
{
{
/*
/*
* Ensure the OK button is enabled only when a data
* Ensure the OK button is enabled only when a data
* source name
* source name
...
...
src/interfaces/odbc/socket.c
View file @
9d244ddb
...
@@ -91,6 +91,7 @@ SOCK_Destructor(SocketClass * self)
...
@@ -91,6 +91,7 @@ SOCK_Destructor(SocketClass * self)
free
(
self
->
buffer_in
);
free
(
self
->
buffer_in
);
if
(
self
->
buffer_out
)
if
(
self
->
buffer_out
)
SOCK_put_n_char
(
self
,
(
char
*
)
&
rv
,
2
);
free
(
self
->
buffer_out
);
free
(
self
->
buffer_out
);
free
(
self
);
free
(
self
);
...
@@ -256,7 +257,6 @@ SOCK_put_int(SocketClass * self, int value, short len)
...
@@ -256,7 +257,6 @@ SOCK_put_int(SocketClass * self, int value, short len)
{
{
case
2
:
case
2
:
rv
=
self
->
reverse
?
value
:
htons
((
unsigned
short
)
value
);
rv
=
self
->
reverse
?
value
:
htons
((
unsigned
short
)
value
);
SOCK_put_n_char
(
self
,
(
char
*
)
&
rv
,
2
);
return
;
return
;
case
4
:
case
4
:
...
...
src/interfaces/odbc/statement.c
View file @
9d244ddb
...
@@ -681,6 +681,7 @@ SC_fetch(StatementClass * self)
...
@@ -681,6 +681,7 @@ SC_fetch(StatementClass * self)
if
(
self
->
currTuple
>=
QR_get_num_tuples
(
res
)
-
1
||
if
(
self
->
currTuple
>=
QR_get_num_tuples
(
res
)
-
1
||
(
self
->
options
.
maxRows
>
0
&&
self
->
currTuple
==
self
->
options
.
maxRows
-
1
))
(
self
->
options
.
maxRows
>
0
&&
self
->
currTuple
==
self
->
options
.
maxRows
-
1
))
{
{
/*
/*
* if at the end of the tuples, return "no data found" and set
* if at the end of the tuples, return "no data found" and set
* the cursor past the end of the result set
* the cursor past the end of the result set
...
...
src/interfaces/odbc/tuplelist.c
View file @
9d244ddb
...
@@ -133,6 +133,7 @@ TL_get_fieldval(TupleListClass * self, Int4 tupleno, Int2 fieldno)
...
@@ -133,6 +133,7 @@ TL_get_fieldval(TupleListClass * self, Int4 tupleno, Int2 fieldno)
}
}
else
if
(
start_is_closer
)
else
if
(
start_is_closer
)
{
{
/*
/*
* the shortest way is to start the search from the head of the
* the shortest way is to start the search from the head of the
* list
* list
...
@@ -179,6 +180,7 @@ TL_get_fieldval(TupleListClass * self, Int4 tupleno, Int2 fieldno)
...
@@ -179,6 +180,7 @@ TL_get_fieldval(TupleListClass * self, Int4 tupleno, Int2 fieldno)
char
char
TL_add_tuple
(
TupleListClass
*
self
,
TupleNode
*
new_field
)
TL_add_tuple
(
TupleListClass
*
self
,
TupleNode
*
new_field
)
{
{
/*
/*
* we append the tuple at the end of the doubly linked list of the
* we append the tuple at the end of the doubly linked list of the
* tuples we have already read in
* tuples we have already read in
...
@@ -197,6 +199,7 @@ TL_add_tuple(TupleListClass * self, TupleNode * new_field)
...
@@ -197,6 +199,7 @@ TL_add_tuple(TupleListClass * self, TupleNode * new_field)
}
}
else
else
{
{
/*
/*
* there is already an element in the list, so add the new one at
* there is already an element in the list, so add the new one at
* the end of the list
* the end of the list
...
...
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