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
c3fdf892
Commit
c3fdf892
authored
Jul 26, 2002
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug about the handling of CX parameter of the connection string
reported by Sergey Smirnov.
parent
40c44166
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
src/interfaces/odbc/connection.c
src/interfaces/odbc/connection.c
+1
-0
src/interfaces/odbc/dlg_specific.c
src/interfaces/odbc/dlg_specific.c
+0
-1
src/interfaces/odbc/psqlodbc.rc
src/interfaces/odbc/psqlodbc.rc
+3
-3
src/interfaces/odbc/setup.c
src/interfaces/odbc/setup.c
+2
-0
No files found.
src/interfaces/odbc/connection.c
View file @
c3fdf892
...
@@ -112,6 +112,7 @@ PGAPI_Connect(
...
@@ -112,6 +112,7 @@ PGAPI_Connect(
make_string
(
szDSN
,
cbDSN
,
ci
->
dsn
);
make_string
(
szDSN
,
cbDSN
,
ci
->
dsn
);
/* get the values for the DSN from the registry */
/* get the values for the DSN from the registry */
memcpy
(
&
ci
->
drivers
,
&
globals
,
sizeof
(
globals
));
getDSNinfo
(
ci
,
CONN_OVERWRITE
);
getDSNinfo
(
ci
,
CONN_OVERWRITE
);
logs_on_off
(
1
,
ci
->
drivers
.
debug
,
ci
->
drivers
.
commlog
);
logs_on_off
(
1
,
ci
->
drivers
.
debug
,
ci
->
drivers
.
commlog
);
/* initialize pg_version from connInfo.protocol */
/* initialize pg_version from connInfo.protocol */
...
...
src/interfaces/odbc/dlg_specific.c
View file @
c3fdf892
...
@@ -421,7 +421,6 @@ getDSNinfo(ConnInfo *ci, char overwrite)
...
@@ -421,7 +421,6 @@ getDSNinfo(ConnInfo *ci, char overwrite)
* If a driver keyword was present, then dont use a DSN and return.
* If a driver keyword was present, then dont use a DSN and return.
* If DSN is null and no driver, then use the default datasource.
* If DSN is null and no driver, then use the default datasource.
*/
*/
memcpy
(
&
ci
->
drivers
,
&
globals
,
sizeof
(
globals
));
if
(
DSN
[
0
]
==
'\0'
)
if
(
DSN
[
0
]
==
'\0'
)
{
{
if
(
ci
->
driver
[
0
]
!=
'\0'
)
if
(
ci
->
driver
[
0
]
!=
'\0'
)
...
...
src/interfaces/odbc/psqlodbc.rc
View file @
c3fdf892
...
@@ -62,8 +62,8 @@ FONT 10, "Terminal"
...
@@ -62,8 +62,8 @@ FONT 10, "Terminal"
BEGIN
BEGIN
RTEXT "&Data Source",IDC_DSNAMETEXT,5,11,50,12,NOT WS_GROUP
RTEXT "&Data Source",IDC_DSNAMETEXT,5,11,50,12,NOT WS_GROUP
EDITTEXT IDC_DSNAME,57,10,72,12,ES_AUTOHSCROLL | WS_GROUP
EDITTEXT IDC_DSNAME,57,10,72,12,ES_AUTOHSCROLL | WS_GROUP
RTEXT "Des&cription",IDC_DESCTEXT,1
34,11,39
,12,NOT WS_GROUP
RTEXT "Des&cription",IDC_DESCTEXT,1
29,10,45
,12,NOT WS_GROUP
EDITTEXT IDC_DESC,17
5,10,108
,12,ES_AUTOHSCROLL
EDITTEXT IDC_DESC,17
6,10,107
,12,ES_AUTOHSCROLL
RTEXT "Data&base",IDC_STATIC,16,26,38,12,NOT WS_GROUP
RTEXT "Data&base",IDC_STATIC,16,26,38,12,NOT WS_GROUP
EDITTEXT IDC_DATABASE,57,25,72,12,ES_AUTOHSCROLL
EDITTEXT IDC_DATABASE,57,25,72,12,ES_AUTOHSCROLL
RTEXT "&Server",IDC_STATIC,26,41,29,12,NOT WS_GROUP
RTEXT "&Server",IDC_STATIC,26,41,29,12,NOT WS_GROUP
...
@@ -171,7 +171,7 @@ BEGIN
...
@@ -171,7 +171,7 @@ BEGIN
WS_TABSTOP,227,95,29,10
WS_TABSTOP,227,95,29,10
GROUPBOX "Protocol",IDC_STATIC,5,115,277,25
GROUPBOX "Protocol",IDC_STATIC,5,115,277,25
CONTROL "7.X,6.4+",DS_PG64,"Button",BS_AUTORADIOBUTTON |
CONTROL "7.X,6.4+",DS_PG64,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,44,126,
35
,10
WS_GROUP,44,126,
49
,10
CONTROL "6.3",DS_PG63,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
CONTROL "6.3",DS_PG63,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
117,126,26,10
117,126,26,10
CONTROL "6.2",DS_PG62,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
CONTROL "6.2",DS_PG62,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
...
...
src/interfaces/odbc/setup.c
View file @
c3fdf892
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#define INTFUNC __stdcall
#define INTFUNC __stdcall
extern
HINSTANCE
NEAR
s_hModule
;
/* Saved module handle. */
extern
HINSTANCE
NEAR
s_hModule
;
/* Saved module handle. */
extern
GLOBAL_VALUES
globals
;
/* Constants */
/* Constants */
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#define MIN(x,y) ((x) < (y) ? (x) : (y))
...
@@ -217,6 +218,7 @@ ConfigDlgProc(HWND hdlg,
...
@@ -217,6 +218,7 @@ ConfigDlgProc(HWND hdlg,
*/
*/
/* override settings in ODBC.INI */
/* override settings in ODBC.INI */
memcpy
(
&
ci
->
drivers
,
&
globals
,
sizeof
(
globals
));
/* Get the rest of the common attributes */
/* Get the rest of the common attributes */
getDSNinfo
(
ci
,
CONN_DONT_OVERWRITE
);
getDSNinfo
(
ci
,
CONN_DONT_OVERWRITE
);
...
...
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