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;
3535
3636#define PDO_DRIVER_API 20170320
3737
38+ /* Doctrine hardcodes these constants, avoid changing their values. */
3839enum 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 ,
4445
4546 /* get_col: Not supported (yet?) */
46- PDO_PARAM_STMT, /* hierarchical result set */
47+ PDO_PARAM_STMT = 4 , /* hierarchical result set */
4748
4849 /* magic flag to denote a parameter as being input/output */
4950 PDO_PARAM_INPUT_OUTPUT = 0x80000000 ,
Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ Key: Name: [5] :bool
4848paramno=-1
4949name=[5] ":bool"
5050is_param=1
51- param_type=1
51+ param_type=5
5252Key: Name: [4] :int
5353paramno=-1
5454name=[4] ":int"
5555is_param=1
56- param_type=2
56+ param_type=1
5757Key: Name: [7] :string
5858paramno=-1
5959name=[7] ":string"
6060is_param=1
61- param_type=3
61+ param_type=2
6262Key: Name: [5] :null
6363paramno=-1
6464name=[5] ":null"
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ array(10) {
3232 ["native_usertype_id"]=>
3333 int(%d)
3434 ["pdo_type"]=>
35- int(3 )
35+ int(2 )
3636 ["name"]=>
3737 string(13) "TABLE_CATALOG"
3838 ["len"]=>
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ Key: Name: [6] :value
2424paramno=-1
2525name=[6] ":value"
2626is_param=1
27- param_type=1073741827
27+ param_type=1073741826
2828NULL
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ array(9) {
5959 ["native_type"]=>
6060 string(4) "int2"
6161 ["pdo_type"]=>
62- int(2 )
62+ int(1 )
6363 ["name"]=>
6464 string(7) "int2col"
6565 ["len"]=>
@@ -78,7 +78,7 @@ array(9) {
7878 ["native_type"]=>
7979 string(4) "int4"
8080 ["pdo_type"]=>
81- int(2 )
81+ int(1 )
8282 ["name"]=>
8383 string(7) "int4col"
8484 ["len"]=>
@@ -97,7 +97,7 @@ array(9) {
9797 ["native_type"]=>
9898 string(4) "int8"
9999 ["pdo_type"]=>
100- int(2 )
100+ int(1 )
101101 ["name"]=>
102102 string(7) "int8col"
103103 ["len"]=>
@@ -116,7 +116,7 @@ array(9) {
116116 ["native_type"]=>
117117 string(7) "varchar"
118118 ["pdo_type"]=>
119- int(3 )
119+ int(2 )
120120 ["name"]=>
121121 string(9) "stringcol"
122122 ["len"]=>
@@ -135,7 +135,7 @@ array(9) {
135135 ["native_type"]=>
136136 string(4) "bool"
137137 ["pdo_type"]=>
138- int(1 )
138+ int(5 )
139139 ["name"]=>
140140 string(7) "boolcol"
141141 ["len"]=>
@@ -154,7 +154,7 @@ array(9) {
154154 ["native_type"]=>
155155 string(4) "date"
156156 ["pdo_type"]=>
157- int(3 )
157+ int(2 )
158158 ["name"]=>
159159 string(7) "datecol"
160160 ["len"]=>
@@ -173,7 +173,7 @@ array(9) {
173173 ["native_type"]=>
174174 string(4) "text"
175175 ["pdo_type"]=>
176- int(3 )
176+ int(2 )
177177 ["name"]=>
178178 string(7) "textcol"
179179 ["len"]=>
@@ -192,7 +192,7 @@ array(9) {
192192 ["native_type"]=>
193193 string(9) "timestamp"
194194 ["pdo_type"]=>
195- int(3 )
195+ int(2 )
196196 ["name"]=>
197197 string(5) "tscol"
198198 ["len"]=>
@@ -211,7 +211,7 @@ array(9) {
211211 ["native_type"]=>
212212 string(5) "bytea"
213213 ["pdo_type"]=>
214- int(4 )
214+ int(3 )
215215 ["name"]=>
216216 string(8) "byteacol"
217217 ["len"]=>
Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ Key: Name: [5] :bool
3333paramno=-1
3434name=[5] ":bool"
3535is_param=1
36- param_type=3
36+ param_type=2
3737Key: Name: [4] :int
3838paramno=-1
3939name=[4] ":int"
4040is_param=1
41- param_type=2
41+ param_type=1
4242Key: Name: [7] :string
4343paramno=-1
4444name=[7] ":string"
4545is_param=1
46- param_type=3
46+ param_type=2
4747Key: Name: [5] :null
4848paramno=-1
4949name=[5] ":null"
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ Key: Name: [2] :a
2121paramno=-1
2222name=[2] ":a"
2323is_param=1
24- param_type=2
24+ param_type=1
2525Key: Name: [2] :b
2626paramno=-1
2727name=[2] ":b"
2828is_param=1
29- param_type=3
29+ param_type=2
3030Key: Position #2:
3131paramno=2
3232name=[0] ""
3333is_param=1
34- param_type=3
34+ param_type=2
3535NULL
You can’t perform that action at this time.
0 commit comments