aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/sqlca.h
blob: 7d6c9994349eea3c1bcf7a7eda08347850377d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef POSTGRES_SQLCA_H
#define POSTGRES_SQLCA_H

#ifdef __cplusplus
extern "C" {
#endif

struct sqlca
{
	char			sqlcaid[8];
	long			sqlabc;
	long			sqlcode;
	struct
	{
		int		sqlerrml;
		char		sqlerrmc[70];
	}			sqlerrm;
	char			sqlerrp[8];
	long			sqlerrd[6];
		/* Element 0: empty                     */
                /*         1: empty                     */
                /*         2: number of rows processed  */
                /*            after an INSERT, UPDATE or*/
                /*            DELETE statement          */
                /*         3: empty                     */
		/*         4: empty                     */
		/*         5: empty                     */
	char			sqlwarn[8];
		/* Element 0: set to 'W' if at least one other is 'W' */
		/*	   1: if 'W' at least one character string    */
		/*	      value was truncated when it was         */
		/*            stored into a host variable.            */
		/*         2: empty                                   */
		/*         3: empty                                   */
		/*         4: empty                                   */
		/*         5: empty                                   */
		/*         6: empty                                   */
		/*         7: empty                                   */
		                                                                
	char			sqlext[8];
} sqlca;

#endif

#ifdef __cplusplus
}
#endif