blob: a9fdb83e9487c14951c3d7608ee0d6396e9e70db (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_0.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Danny Heijl <Danny.Heijl@cevi.be>, initial cut (ODS 7) |
| Christian Cartus <chc@idgruppe.de>, blobs, and IUS 9 |
| Jouni Ahto <jouni.ahto@exdec.fi>, configuration stuff |
| Corne' Cornelius <cornec@reach.co.za>, input descriptors |
| based on mysql code by: Zeev Suraski <zeev@php.net> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef PHP_INFORMIX_INCLUDES_H
#define PHP_INFORMIX_INCLUDES_H
#if HAVE_IFX /* with Informix */
#undef TYPEMAX
#undef CHAR
#include "locator.h"
#include "sqltypes.h"
#define MAX_RESID 64
#define BLOBINFILE 0 /* 0=in memory, 1=in file */
/* query result set data */
typedef struct ifx_res {
char connecid[32];
char cursorid[32];
char descrpid[32];
char i_descrpid[32];
char statemid[32];
int isscroll;
int ishold;
int iscursory;
int paramquery;
int numcols;
int numicols;
int rowid;
int affected_rows;
long sqlerrd[6];
int res_id[MAX_RESID];
} IFX_RES;
typedef struct _IFX_IDRES {
int type;
union {
struct {
int mode;
loc_t blob_data;
} BLOBRES;
struct {
char *char_data;
int len;
} CHARRES;
#if HAVE_IFX_IUS
struct {
ifx_lo_t slob_data;
ifx_lo_create_spec_t *createspec;
int lofd;
} SLOBRES;
#endif
} DATARES;
} IFX_IDRES;
#define BLOB DATARES.BLOBRES
#define CHAR DATARES.CHARRES
#if HAVE_IFX_IUS
#define SLOB DATARES.SLOBRES
#endif
#endif /* HAVE_IFX */
#endif /* PHP_INFORMIX_INCLUDES_H */
|