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
223a9cd3
Commit
223a9cd3
authored
Jan 06, 2010
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove __FUNCTION__ keyword that is not recognized by som compilers.
parent
822697a2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
102 deletions
+110
-102
src/interfaces/ecpg/ecpglib/sqlda.c
src/interfaces/ecpg/ecpglib/sqlda.c
+4
-4
src/interfaces/ecpg/include/sqlda-native.h
src/interfaces/ecpg/include/sqlda-native.h
+10
-2
src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
...nterfaces/ecpg/test/expected/compat_informix-sqlda.stderr
+48
-48
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
+48
-48
No files found.
src/interfaces/ecpg/ecpglib/sqlda.c
View file @
223a9cd3
...
...
@@ -215,7 +215,7 @@ ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa
fname
=
(
char
*
)(
sqlvar
+
sqld
);
sqlda
->
sqld
=
sqld
;
ecpg_log
(
"
%s sqld = %d
\n
"
,
__FUNCTION__
,
sqld
);
ecpg_log
(
"
ecpg_build_compat_sqlda on line %d sqld = %d
\n
"
,
line
,
sqld
);
sqlda
->
desc_occ
=
size
;
/* cheat here, keep the full allocated size */
sqlda
->
sqlvar
=
sqlvar
;
...
...
@@ -373,7 +373,7 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
}
isnull
=
PQgetisnull
(
res
,
row
,
i
);
ecpg_log
(
"
%s row %d col %d %s
\n
"
,
__FUNCTION__
,
row
,
i
,
isnull
?
"IS NULL"
:
"IS NOT NULL"
);
ecpg_log
(
"
ecpg_set_compat_sqlda on line %d row %d col %d %s
\n
"
,
lineno
,
row
,
i
,
isnull
?
"IS NULL"
:
"IS NOT NULL"
);
sqlda
->
sqlvar
[
i
].
sqlind
=
isnull
?
&
value_is_null
:
&
value_is_not_null
;
sqlda
->
sqlvar
[
i
].
sqlitype
=
ECPGt_short
;
sqlda
->
sqlvar
[
i
].
sqlilen
=
sizeof
(
short
);
...
...
@@ -408,7 +408,7 @@ ecpg_build_native_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa
sprintf
(
sqlda
->
sqldaid
,
"SQLDA "
);
sqlda
->
sqld
=
sqlda
->
sqln
=
PQnfields
(
res
);
ecpg_log
(
"
%s sqld = %d
\n
"
,
__FUNCTION__
,
sqlda
->
sqld
);
ecpg_log
(
"
ecpg_build_native_sqlda on line %d sqld = %d
\n
"
,
line
,
sqlda
->
sqld
);
sqlda
->
sqldabc
=
sizeof
(
struct
sqlda_struct
)
+
(
sqlda
->
sqld
-
1
)
*
sizeof
(
struct
sqlvar_struct
);
for
(
i
=
0
;
i
<
sqlda
->
sqld
;
i
++
)
...
...
@@ -556,7 +556,7 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
}
isnull
=
PQgetisnull
(
res
,
row
,
i
);
ecpg_log
(
"
%s row %d col %d %s
\n
"
,
__FUNCTION__
,
row
,
i
,
isnull
?
"IS NULL"
:
"IS NOT NULL"
);
ecpg_log
(
"
ecpg_set_native_sqlda on line %d row %d col %d %s
\n
"
,
lineno
,
row
,
i
,
isnull
?
"IS NULL"
:
"IS NOT NULL"
);
sqlda
->
sqlvar
[
i
].
sqlind
=
isnull
?
&
value_is_null
:
&
value_is_not_null
;
if
(
!
isnull
)
{
...
...
src/interfaces/ecpg/include/sqlda-native.h
View file @
223a9cd3
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda-native.h,v 1.
1 2010/01/05 16:38:23
meskes Exp $
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda-native.h,v 1.
2 2010/01/06 15:10:21
meskes Exp $
*/
#ifndef ECPG_SQLDA_NATIVE_H
#define ECPG_SQLDA_NATIVE_H
#include "postgres_fe.h"
/*
* Maximum length for identifiers (e.g. table names, column names,
* function names). Names actually are limited to one less byte than this,
* because the length must include a trailing zero byte.
*
* This should be at least as much as NAMEDATALEN of the database the
* applications run against.
*/
#define NAMEDATALEN 64
struct
sqlname
{
...
...
src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr
View file @
223a9cd3
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/test/expected/sql-sqlda.stderr
View file @
223a9cd3
This diff is collapsed.
Click to expand it.
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