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
5ab642fd
Commit
5ab642fd
authored
Mar 10, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a hack to let initialization happen on platforms for which
psqlodbc.c's constructor-making techniques do not work.
parent
eb9033ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/interfaces/odbc/environ.c
src/interfaces/odbc/environ.c
+15
-3
No files found.
src/interfaces/odbc/environ.c
View file @
5ab642fd
...
...
@@ -15,19 +15,31 @@
#include "environ.h"
#include "connection.h"
#include "dlg_specific.h"
#include "statement.h"
#include <stdlib.h>
#include <string.h>
extern
GLOBAL_VALUES
globals
;
/* The one instance of the handles */
ConnectionClass
*
conns
[
MAX_CONNECTIONS
];
RETCODE
SQL_API
SQLAllocEnv
(
HENV
FAR
*
phenv
)
{
static
char
*
func
=
"SQLAllocEnv"
;
mylog
(
"**** in SQLAllocEnv **
\n
"
);
static
char
*
func
=
"SQLAllocEnv"
;
mylog
(
"**** in SQLAllocEnv **
\n
"
);
/*
* Hack for systems on which none of the constructor-making techniques
* in psqlodbc.c work: if globals appears not to have been initialized,
* then cause it to be initialized. Since this should be the first
* function called in this shared library, doing it here should work.
*/
if
(
globals
.
socket_buffersize
<=
0
)
getGlobalDefaults
(
DBMS_NAME
,
ODBCINST_INI
,
FALSE
);
*
phenv
=
(
HENV
)
EN_Constructor
();
if
(
!
*
phenv
)
{
...
...
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