File tree Expand file tree Collapse file tree 7 files changed +27
-26
lines changed Expand file tree Collapse file tree 7 files changed +27
-26
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,16 @@ struct pdo_bound_param_data;
35
35
36
36
#define PDO_DRIVER_API 20170320
37
37
38
+ /* Doctrine hardcodes these constants, avoid changing their values. */
38
39
enum pdo_param_type {
39
- PDO_PARAM_NULL,
40
- PDO_PARAM_BOOL,
41
- PDO_PARAM_INT,
42
- PDO_PARAM_STR,
43
- PDO_PARAM_LOB,
40
+ PDO_PARAM_NULL = 0 ,
41
+ PDO_PARAM_BOOL = 5 ,
42
+ PDO_PARAM_INT = 1 ,
43
+ PDO_PARAM_STR = 2 ,
44
+ PDO_PARAM_LOB = 3 ,
44
45
45
46
/* get_col: Not supported (yet?) */
46
- PDO_PARAM_STMT, /* hierarchical result set */
47
+ PDO_PARAM_STMT = 4 , /* hierarchical result set */
47
48
48
49
/* magic flag to denote a parameter as being input/output */
49
50
PDO_PARAM_INPUT_OUTPUT = 0x80000000 ,
Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ Key: Name: [5] :bool
48
48
paramno=-1
49
49
name=[5] ":bool"
50
50
is_param=1
51
- param_type=1
51
+ param_type=5
52
52
Key: Name: [4] :int
53
53
paramno=-1
54
54
name=[4] ":int"
55
55
is_param=1
56
- param_type=2
56
+ param_type=1
57
57
Key: Name: [7] :string
58
58
paramno=-1
59
59
name=[7] ":string"
60
60
is_param=1
61
- param_type=3
61
+ param_type=2
62
62
Key: Name: [5] :null
63
63
paramno=-1
64
64
name=[5] ":null"
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ array(10) {
32
32
["native_usertype_id"]=>
33
33
int(%d)
34
34
["pdo_type"]=>
35
- int(3 )
35
+ int(2 )
36
36
["name"]=>
37
37
string(13) "TABLE_CATALOG"
38
38
["len"]=>
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ Key: Name: [6] :value
24
24
paramno=-1
25
25
name=[6] ":value"
26
26
is_param=1
27
- param_type=1073741827
27
+ param_type=1073741826
28
28
NULL
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ array(9) {
59
59
["native_type"]=>
60
60
string(4) "int2"
61
61
["pdo_type"]=>
62
- int(2 )
62
+ int(1 )
63
63
["name"]=>
64
64
string(7) "int2col"
65
65
["len"]=>
@@ -78,7 +78,7 @@ array(9) {
78
78
["native_type"]=>
79
79
string(4) "int4"
80
80
["pdo_type"]=>
81
- int(2 )
81
+ int(1 )
82
82
["name"]=>
83
83
string(7) "int4col"
84
84
["len"]=>
@@ -97,7 +97,7 @@ array(9) {
97
97
["native_type"]=>
98
98
string(4) "int8"
99
99
["pdo_type"]=>
100
- int(2 )
100
+ int(1 )
101
101
["name"]=>
102
102
string(7) "int8col"
103
103
["len"]=>
@@ -116,7 +116,7 @@ array(9) {
116
116
["native_type"]=>
117
117
string(7) "varchar"
118
118
["pdo_type"]=>
119
- int(3 )
119
+ int(2 )
120
120
["name"]=>
121
121
string(9) "stringcol"
122
122
["len"]=>
@@ -135,7 +135,7 @@ array(9) {
135
135
["native_type"]=>
136
136
string(4) "bool"
137
137
["pdo_type"]=>
138
- int(1 )
138
+ int(5 )
139
139
["name"]=>
140
140
string(7) "boolcol"
141
141
["len"]=>
@@ -154,7 +154,7 @@ array(9) {
154
154
["native_type"]=>
155
155
string(4) "date"
156
156
["pdo_type"]=>
157
- int(3 )
157
+ int(2 )
158
158
["name"]=>
159
159
string(7) "datecol"
160
160
["len"]=>
@@ -173,7 +173,7 @@ array(9) {
173
173
["native_type"]=>
174
174
string(4) "text"
175
175
["pdo_type"]=>
176
- int(3 )
176
+ int(2 )
177
177
["name"]=>
178
178
string(7) "textcol"
179
179
["len"]=>
@@ -192,7 +192,7 @@ array(9) {
192
192
["native_type"]=>
193
193
string(9) "timestamp"
194
194
["pdo_type"]=>
195
- int(3 )
195
+ int(2 )
196
196
["name"]=>
197
197
string(5) "tscol"
198
198
["len"]=>
@@ -211,7 +211,7 @@ array(9) {
211
211
["native_type"]=>
212
212
string(5) "bytea"
213
213
["pdo_type"]=>
214
- int(4 )
214
+ int(3 )
215
215
["name"]=>
216
216
string(8) "byteacol"
217
217
["len"]=>
Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ Key: Name: [5] :bool
33
33
paramno=-1
34
34
name=[5] ":bool"
35
35
is_param=1
36
- param_type=3
36
+ param_type=2
37
37
Key: Name: [4] :int
38
38
paramno=-1
39
39
name=[4] ":int"
40
40
is_param=1
41
- param_type=2
41
+ param_type=1
42
42
Key: Name: [7] :string
43
43
paramno=-1
44
44
name=[7] ":string"
45
45
is_param=1
46
- param_type=3
46
+ param_type=2
47
47
Key: Name: [5] :null
48
48
paramno=-1
49
49
name=[5] ":null"
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ Key: Name: [2] :a
21
21
paramno=-1
22
22
name=[2] ":a"
23
23
is_param=1
24
- param_type=2
24
+ param_type=1
25
25
Key: Name: [2] :b
26
26
paramno=-1
27
27
name=[2] ":b"
28
28
is_param=1
29
- param_type=3
29
+ param_type=2
30
30
Key: Position #2:
31
31
paramno=2
32
32
name=[0] ""
33
33
is_param=1
34
- param_type=3
34
+ param_type=2
35
35
NULL
You can’t perform that action at this time.
0 commit comments