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
27ed8ac2
Commit
27ed8ac2
authored
Feb 08, 2001
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a misuse of 'char *' declaration.
parent
897a895d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/interfaces/odbc/connection.c
src/interfaces/odbc/connection.c
+2
-1
No files found.
src/interfaces/odbc/connection.c
View file @
27ed8ac2
...
@@ -1403,7 +1403,7 @@ CC_lookup_pg_version(ConnectionClass *self)
...
@@ -1403,7 +1403,7 @@ CC_lookup_pg_version(ConnectionClass *self)
HSTMT
hstmt
;
HSTMT
hstmt
;
StatementClass
*
stmt
;
StatementClass
*
stmt
;
RETCODE
result
;
RETCODE
result
;
char
*
szVersion
=
"0.0"
;
char
szVersion
[
32
]
;
int
major
,
minor
;
int
major
,
minor
;
static
char
*
func
=
"CC_lookup_pg_version"
;
static
char
*
func
=
"CC_lookup_pg_version"
;
...
@@ -1439,6 +1439,7 @@ static char *func = "CC_lookup_pg_version";
...
@@ -1439,6 +1439,7 @@ static char *func = "CC_lookup_pg_version";
/* Extract the Major and Minor numbers from the string. */
/* Extract the Major and Minor numbers from the string. */
/* This assumes the string starts 'Postgresql X.X' */
/* This assumes the string starts 'Postgresql X.X' */
strcpy
(
szVersion
,
"0.0"
);
if
(
sscanf
(
self
->
pg_version
,
"%*s %d.%d"
,
&
major
,
&
minor
)
>=
2
)
{
if
(
sscanf
(
self
->
pg_version
,
"%*s %d.%d"
,
&
major
,
&
minor
)
>=
2
)
{
sprintf
(
szVersion
,
"%d.%d"
,
major
,
minor
);
sprintf
(
szVersion
,
"%d.%d"
,
major
,
minor
);
self
->
pg_version_major
=
major
;
self
->
pg_version_major
=
major
;
...
...
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