PostgreSQL Source Code
git master
sqlda-native.h
Go to the documentation of this file.
1
/*
2
* src/interfaces/ecpg/include/sqlda-native.h
3
*/
4
5
#ifndef ECPG_SQLDA_NATIVE_H
6
#define ECPG_SQLDA_NATIVE_H
7
8
/*
9
* Maximum length for identifiers (e.g. table names, column names,
10
* function names). Names actually are limited to one fewer byte than this,
11
* because the length must include a trailing zero byte.
12
*
13
* This should be at least as much as NAMEDATALEN of the database the
14
* applications run against.
15
*/
16
#define NAMEDATALEN 64
17
18
struct
sqlname
19
{
20
short
length
;
21
char
data
[
NAMEDATALEN
];
22
};
23
24
struct
sqlvar_struct
25
{
26
short
sqltype
;
27
short
sqllen
;
28
char
*
sqldata
;
29
short
*
sqlind
;
30
struct
sqlname
sqlname
;
31
};
32
33
struct
sqlda_struct
34
{
35
char
sqldaid
[8];
36
long
sqldabc
;
37
short
sqln
;
38
short
sqld
;
39
struct
sqlda_struct
*
desc_next
;
40
struct
sqlvar_struct
sqlvar
[1];
41
};
42
43
#endif
/* ECPG_SQLDA_NATIVE_H */
NAMEDATALEN
#define NAMEDATALEN
Definition:
sqlda-native.h:16
sqlda_struct
Definition:
sqlda-native.h:34
sqlda_struct::sqlvar
struct sqlvar_struct sqlvar[1]
Definition:
sqlda-native.h:40
sqlda_struct::sqld
short sqld
Definition:
sqlda-native.h:38
sqlda_struct::sqldabc
long sqldabc
Definition:
sqlda-native.h:36
sqlda_struct::sqldaid
char sqldaid[8]
Definition:
sqlda-native.h:35
sqlda_struct::sqln
short sqln
Definition:
sqlda-native.h:37
sqlda_struct::desc_next
struct sqlda_struct * desc_next
Definition:
sqlda-native.h:39
sqlname
Definition:
sqlda-native.h:19
sqlname::data
char data[NAMEDATALEN]
Definition:
sqlda-native.h:21
sqlname::length
short length
Definition:
sqlda-native.h:20
sqlvar_struct
Definition:
sqlda-native.h:25
sqlvar_struct::sqltype
short sqltype
Definition:
sqlda-native.h:26
sqlvar_struct::sqllen
short sqllen
Definition:
sqlda-native.h:27
sqlvar_struct::sqldata
char * sqldata
Definition:
sqlda-native.h:28
sqlvar_struct::sqlind
short * sqlind
Definition:
sqlda-native.h:29
src
interfaces
ecpg
include
sqlda-native.h
Generated on Sun Dec 8 2024 06:13:25 for PostgreSQL Source Code by
1.9.1