reference/pdo/constants.xml
cb14980cc2b64fdb2f04d8d49e09f8d374815c35
...
...
@@ -4,17 +4,11 @@
4
4
<appendix xml:id="pdo.constants" xmlns="http://docbook.org/ns/docbook">
5
5
&reftitle.constants;
6
6
&extension.constants;
7
-
<warning>
8
-
<para>
9
-
PDO uses class constants since PHP 5.1. Prior releases use global constants
10
-
in the form <constant>PDO_PARAM_BOOL</constant>.
11
-
</para>
12
-
</warning>
13
7
<variablelist>
14
8
<varlistentry xml:id="pdo.constants.param-bool">
15
9
<term>
16
10
<constant>PDO::PARAM_BOOL</constant>
17
-
(<type>integer</type>)
11
+
(<type>int</type>)
18
12
</term>
19
13
<listitem>
20
14
<simpara>
...
...
@@ -22,11 +16,10 @@
22
16
</simpara>
23
17
</listitem>
24
18
</varlistentry>
25
-

26
19
<varlistentry xml:id="pdo.constants.param-null">
27
20
<term>
28
21
<constant>PDO::PARAM_NULL</constant>
29
-
(<type>integer</type>)
22
+
(<type>int</type>)
30
23
</term>
31
24
<listitem>
32
25
<simpara>
...
...
@@ -37,7 +30,7 @@
37
30
<varlistentry xml:id="pdo.constants.param-int">
38
31
<term>
39
32
<constant>PDO::PARAM_INT</constant>
40
-
(<type>integer</type>)
33
+
(<type>int</type>)
41
34
</term>
42
35
<listitem>
43
36
<simpara>
...
...
@@ -48,7 +41,7 @@
48
41
<varlistentry xml:id="pdo.constants.param-str">
49
42
<term>
50
43
<constant>PDO::PARAM_STR</constant>
51
-
(<type>integer</type>)
44
+
(<type>int</type>)
52
45
</term>
53
46
<listitem>
54
47
<simpara>
...
...
@@ -56,10 +49,38 @@
56
49
</simpara>
57
50
</listitem>
58
51
</varlistentry>
52
+
<varlistentry xml:id="pdo.constants.param-str-natl">
53
+
<term>
54
+
<constant>PDO::PARAM_STR_NATL</constant>
55
+
(<type>int</type>)
56
+
</term>
57
+
<listitem>
58
+
<simpara>
59
+
Flag to denote a string uses the national character set.
60
+
</simpara>
61
+
<simpara>
62
+
Available since PHP 7.2.0
63
+
</simpara>
64
+
</listitem>
65
+
</varlistentry>
66
+
<varlistentry xml:id="pdo.constants.param-str-char">
67
+
<term>
68
+
<constant>PDO::PARAM_STR_CHAR</constant>
69
+
(<type>int</type>)
70
+
</term>
71
+
<listitem>
72
+
<simpara>
73
+
Flag to denote a string uses the regular character set.
74
+
</simpara>
75
+
<simpara>
76
+
Available since PHP 7.2.0
77
+
</simpara>
78
+
</listitem>
79
+
</varlistentry>
59
80
<varlistentry xml:id="pdo.constants.param-lob">
60
81
<term>
61
82
<constant>PDO::PARAM_LOB</constant>
62
-
(<type>integer</type>)
83
+
(<type>int</type>)
63
84
</term>
64
85
<listitem>
65
86
<simpara>
...
...
@@ -70,7 +91,7 @@
70
91
<varlistentry xml:id="pdo.constants.param-stmt">
71
92
<term>
72
93
<constant>PDO::PARAM_STMT</constant>
73
-
(<type>integer</type>)
94
+
(<type>int</type>)
74
95
</term>
75
96
<listitem>
76
97
<simpara>
...
...
@@ -81,7 +102,7 @@
81
102
<varlistentry xml:id="pdo.constants.param-input-output">
82
103
<term>
83
104
<constant>PDO::PARAM_INPUT_OUTPUT</constant>
84
-
(<type>integer</type>)
105
+
(<type>int</type>)
85
106
</term>
86
107
<listitem>
87
108
<simpara>
...
...
@@ -91,24 +112,37 @@
91
112
</simpara>
92
113
</listitem>
93
114
</varlistentry>
115
+
<varlistentry xml:id="pdo.constants.fetch-default">
116
+
<term>
117
+
<constant>PDO::FETCH_DEFAULT</constant>
118
+
(<type>int</type>)
119
+
</term>
120
+
<listitem>
121
+
<simpara>
122
+
Specifies that the default fetch mode shall be used. Available as of PHP 8.0.7.
123
+
</simpara>
124
+
</listitem>
125
+
</varlistentry>
94
126
<varlistentry xml:id="pdo.constants.fetch-lazy">
95
127
<term>
96
128
<constant>PDO::FETCH_LAZY</constant>
97
-
(<type>integer</type>)
129
+
(<type>int</type>)
98
130
</term>
99
131
<listitem>
100
132
<simpara>
101
133
Specifies that the fetch method shall return each row as an object with
102
-
variable names that correspond to the column names returned in the result
103
-
set. <constant>PDO::FETCH_LAZY</constant> creates the object variable names as they are accessed.
104
-
Not valid inside <function>PDOStatement::fetchAll</function>.
134
+
property names that correspond to the column names returned in the result set.
135
+
<constant>PDO::FETCH_LAZY</constant> returns
136
+
a <classname>PDORow</classname> object
137
+
which creates the object property names as they are accessed.
138
+
Not valid inside <methodname>PDOStatement::fetchAll</methodname>.
105
139
</simpara>
106
140
</listitem>
107
141
</varlistentry>
108
142
<varlistentry xml:id="pdo.constants.fetch-assoc">
109
143
<term>
110
144
<constant>PDO::FETCH_ASSOC</constant>
111
-
(<type>integer</type>)
145
+
(<type>int</type>)
112
146
</term>
113
147
<listitem>
114
148
<simpara>
...
...
@@ -123,7 +157,7 @@
123
157
<varlistentry xml:id="pdo.constants.fetch-named">
124
158
<term>
125
159
<constant>PDO::FETCH_NAMED</constant>
126
-
(<type>integer</type>)
160
+
(<type>int</type>)
127
161
</term>
128
162
<listitem>
129
163
<simpara>
...
...
@@ -138,7 +172,7 @@
138
172
<varlistentry xml:id="pdo.constants.fetch-num">
139
173
<term>
140
174
<constant>PDO::FETCH_NUM</constant>
141
-
(<type>integer</type>)
175
+
(<type>int</type>)
142
176
</term>
143
177
<listitem>
144
178
<simpara>
...
...
@@ -151,7 +185,7 @@
151
185
<varlistentry xml:id="pdo.constants.fetch-both">
152
186
<term>
153
187
<constant>PDO::FETCH_BOTH</constant>
154
-
(<type>integer</type>)
188
+
(<type>int</type>)
155
189
</term>
156
190
<listitem>
157
191
<simpara>
...
...
@@ -164,7 +198,7 @@
164
198
<varlistentry xml:id="pdo.constants.fetch-obj">
165
199
<term>
166
200
<constant>PDO::FETCH_OBJ</constant>
167
-
(<type>integer</type>)
201
+
(<type>int</type>)
168
202
</term>
169
203
<listitem>
170
204
<simpara>
...
...
@@ -177,21 +211,21 @@
177
211
<varlistentry xml:id="pdo.constants.fetch-bound">
178
212
<term>
179
213
<constant>PDO::FETCH_BOUND</constant>
180
-
(<type>integer</type>)
214
+
(<type>int</type>)
181
215
</term>
182
216
<listitem>
183
217
<simpara>
184
218
Specifies that the fetch method shall return TRUE and assign the values of
185
219
the columns in the result set to the PHP variables to which they were
186
-
bound with the <function>PDOStatement::bindParam</function> or
187
-
<function>PDOStatement::bindColumn</function> methods.
220
+
bound with the <methodname>PDOStatement::bindParam</methodname> or
221
+
<methodname>PDOStatement::bindColumn</methodname> methods.
188
222
</simpara>
189
223
</listitem>
190
224
</varlistentry>
191
225
<varlistentry xml:id="pdo.constants.fetch-column">
192
226
<term>
193
227
<constant>PDO::FETCH_COLUMN</constant>
194
-
(<type>integer</type>)
228
+
(<type>int</type>)
195
229
</term>
196
230
<listitem>
197
231
<simpara>
...
...
@@ -203,7 +237,7 @@
203
237
<varlistentry xml:id="pdo.constants.fetch-class">
204
238
<term>
205
239
<constant>PDO::FETCH_CLASS</constant>
206
-
(<type>integer</type>)
240
+
(<type>int</type>)
207
241
</term>
208
242
<listitem>
209
243
<simpara>
...
...
@@ -222,7 +256,7 @@
222
256
<varlistentry xml:id="pdo.constants.fetch-into">
223
257
<term>
224
258
<constant>PDO::FETCH_INTO</constant>
225
-
(<type>integer</type>)
259
+
(<type>int</type>)
226
260
</term>
227
261
<listitem>
228
262
<simpara>
...
...
@@ -234,19 +268,19 @@
234
268
<varlistentry xml:id="pdo.constants.fetch-func">
235
269
<term>
236
270
<constant>PDO::FETCH_FUNC</constant>
237
-
(<type>integer</type>)
271
+
(<type>int</type>)
238
272
</term>
239
273
<listitem>
240
274
<simpara>
241
275
Allows completely customize the way data is treated on the fly (only
242
-
valid inside <function>PDOStatement::fetchAll</function>).
276
+
valid inside <methodname>PDOStatement::fetchAll</methodname>).
243
277
</simpara>
244
278
</listitem>
245
279
</varlistentry>
246
280
<varlistentry xml:id="pdo.constants.fetch-group">
247
281
<term>
248
282
<constant>PDO::FETCH_GROUP</constant>
249
-
(<type>integer</type>)
283
+
(<type>int</type>)
250
284
</term>
251
285
<listitem>
252
286
<simpara>
...
...
@@ -259,7 +293,7 @@
259
293
<varlistentry xml:id="pdo.constants.fetch-unique">
260
294
<term>
261
295
<constant>PDO::FETCH_UNIQUE</constant>
262
-
(<type>integer</type>)
296
+
(<type>int</type>)
263
297
</term>
264
298
<listitem>
265
299
<simpara>
...
...
@@ -271,12 +305,12 @@
271
305
<varlistentry xml:id="pdo.constants.fetch-key-pair">
272
306
<term>
273
307
<constant>PDO::FETCH_KEY_PAIR</constant>
274
-
(<type>integer</type>)
308
+
(<type>int</type>)
275
309
</term>
276
310
<listitem>
277
311
<simpara>
278
312
Fetch a two-column result into an array where the first column is a key and the second column
279
-
is the value. Available since PHP 5.2.3.
313
+
is the value.
280
314
</simpara>
281
315
</listitem>
282
316
</varlistentry>
...
...
@@ -284,7 +318,7 @@
284
318
<varlistentry xml:id="pdo.constants.fetch-classtype">
285
319
<term>
286
320
<constant>PDO::FETCH_CLASSTYPE</constant>
287
-
(<type>integer</type>)
321
+
(<type>int</type>)
288
322
</term>
289
323
<listitem>
290
324
<simpara>
...
...
@@ -295,31 +329,31 @@
295
329
<varlistentry xml:id="pdo.constants.fetch-serialize">
296
330
<term>
297
331
<constant>PDO::FETCH_SERIALIZE</constant>
298
-
(<type>integer</type>)
332
+
(<type>int</type>)
299
333
</term>
300
334
<listitem>
301
335
<simpara>
302
336
As <constant>PDO::FETCH_INTO</constant> but object is provided as a serialized string.
303
-
Available since PHP 5.1.0. Since PHP 5.3.0 the class constructor is never called if this
304
-
flag is set.
337
+
The class constructor is never called if this flag is set.
338
+
Deprecated as of PHP 8.1.0.
305
339
</simpara>
306
340
</listitem>
307
341
</varlistentry>
308
342
<varlistentry xml:id="pdo.constants.fetch-props-late">
309
343
<term>
310
344
<constant>PDO::FETCH_PROPS_LATE</constant>
311
-
(<type>integer</type>)
345
+
(<type>int</type>)
312
346
</term>
313
347
<listitem>
314
348
<simpara>
315
-
Call the constructor before setting properties. Available since PHP 5.2.0.
349
+
Call the constructor before setting properties.
316
350
</simpara>
317
351
</listitem>
318
352
</varlistentry>
319
353
<varlistentry xml:id="pdo.constants.attr-autocommit">
320
354
<term>
321
355
<constant>PDO::ATTR_AUTOCOMMIT</constant>
322
-
(<type>integer</type>)
356
+
(<type>int</type>)
323
357
</term>
324
358
<listitem>
325
359
<simpara>
...
...
@@ -331,7 +365,7 @@
331
365
<varlistentry xml:id="pdo.constants.attr-prefetch">
332
366
<term>
333
367
<constant>PDO::ATTR_PREFETCH</constant>
334
-
(<type>integer</type>)
368
+
(<type>int</type>)
335
369
</term>
336
370
<listitem>
337
371
<simpara>
...
...
@@ -345,7 +379,7 @@
345
379
<varlistentry xml:id="pdo.constants.attr-timeout">
346
380
<term>
347
381
<constant>PDO::ATTR_TIMEOUT</constant>
348
-
(<type>integer</type>)
382
+
(<type>int</type>)
349
383
</term>
350
384
<listitem>
351
385
<simpara>
...
...
@@ -356,7 +390,7 @@
356
390
<varlistentry xml:id="pdo.constants.attr-errmode">
357
391
<term>
358
392
<constant>PDO::ATTR_ERRMODE</constant>
359
-
(<type>integer</type>)
393
+
(<type>int</type>)
360
394
</term>
361
395
<listitem>
362
396
<simpara>
...
...
@@ -368,7 +402,7 @@
368
402
<varlistentry xml:id="pdo.constants.attr-server-version">
369
403
<term>
370
404
<constant>PDO::ATTR_SERVER_VERSION</constant>
371
-
(<type>integer</type>)
405
+
(<type>int</type>)
372
406
</term>
373
407
<listitem>
374
408
<simpara>
...
...
@@ -380,7 +414,7 @@
380
414
<varlistentry xml:id="pdo.constants.attr-client-version">
381
415
<term>
382
416
<constant>PDO::ATTR_CLIENT_VERSION</constant>
383
-
(<type>integer</type>)
417
+
(<type>int</type>)
384
418
</term>
385
419
<listitem>
386
420
<simpara>
...
...
@@ -392,7 +426,7 @@
392
426
<varlistentry xml:id="pdo.constants.attr-server-info">
393
427
<term>
394
428
<constant>PDO::ATTR_SERVER_INFO</constant>
395
-
(<type>integer</type>)
429
+
(<type>int</type>)
396
430
</term>
397
431
<listitem>
398
432
<simpara>
...
...
@@ -404,7 +438,7 @@
404
438
<varlistentry xml:id="pdo.constants.attr-connection-status">
405
439
<term>
406
440
<constant>PDO::ATTR_CONNECTION_STATUS</constant>
407
-
(<type>integer</type>)
441
+
(<type>int</type>)
408
442
</term>
409
443
<listitem>
410
444
<simpara>
...
...
@@ -415,7 +449,7 @@
415
449
<varlistentry xml:id="pdo.constants.attr-case">
416
450
<term>
417
451
<constant>PDO::ATTR_CASE</constant>
418
-
(<type>integer</type>)
452
+
(<type>int</type>)
419
453
</term>
420
454
<listitem>
421
455
<simpara>
...
...
@@ -427,7 +461,7 @@
427
461
<varlistentry xml:id="pdo.constants.attr-cursor-name">
428
462
<term>
429
463
<constant>PDO::ATTR_CURSOR_NAME</constant>
430
-
(<type>integer</type>)
464
+
(<type>int</type>)
431
465
</term>
432
466
<listitem>
433
467
<simpara>
...
...
@@ -439,7 +473,7 @@
439
473
<varlistentry xml:id="pdo.constants.attr-cursor">
440
474
<term>
441
475
<constant>PDO::ATTR_CURSOR</constant>
442
-
(<type>integer</type>)
476
+
(<type>int</type>)
443
477
</term>
444
478
<listitem>
445
479
<simpara>
...
...
@@ -455,7 +489,7 @@
455
489
<varlistentry xml:id="pdo.constants.attr-driver-name">
456
490
<term>
457
491
<constant>PDO::ATTR_DRIVER_NAME</constant>
458
-
(<type>string</type>)
492
+
(<type>int</type>)
459
493
</term>
460
494
<listitem>
461
495
<simpara>
...
...
@@ -476,11 +510,10 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
476
510
</para>
477
511
</listitem>
478
512
</varlistentry>
479
-

480
513
<varlistentry xml:id="pdo.constants.attr-oracle-nulls">
481
514
<term>
482
515
<constant>PDO::ATTR_ORACLE_NULLS</constant>
483
-
(<type>integer</type>)
516
+
(<type>int</type>)
484
517
</term>
485
518
<listitem>
486
519
<simpara>
...
...
@@ -491,7 +524,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
491
524
<varlistentry xml:id="pdo.constants.attr-persistent">
492
525
<term>
493
526
<constant>PDO::ATTR_PERSISTENT</constant>
494
-
(<type>integer</type>)
527
+
(<type>int</type>)
495
528
</term>
496
529
<listitem>
497
530
<simpara>
...
...
@@ -504,18 +537,18 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
504
537
<varlistentry xml:id="pdo.constants.attr-statement-class">
505
538
<term>
506
539
<constant>PDO::ATTR_STATEMENT_CLASS</constant>
507
-
(<type>integer</type>)
540
+
(<type>int</type>)
508
541
</term>
509
542
<listitem>
510
543
<simpara>
511
-

544
+
Sets the class name of which statements are returned as.
512
545
</simpara>
513
546
</listitem>
514
547
</varlistentry>
515
548
<varlistentry xml:id="pdo.constants.attr-fetch-catalog-names">
516
549
<term>
517
550
<constant>PDO::ATTR_FETCH_CATALOG_NAMES</constant>
518
-
(<type>integer</type>)
551
+
(<type>int</type>)
519
552
</term>
520
553
<listitem>
521
554
<simpara>
...
...
@@ -529,7 +562,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
529
562
<varlistentry xml:id="pdo.constants.attr-fetch-table-names">
530
563
<term>
531
564
<constant>PDO::ATTR_FETCH_TABLE_NAMES</constant>
532
-
(<type>integer</type>)
565
+
(<type>int</type>)
533
566
</term>
534
567
<listitem>
535
568
<simpara>
...
...
@@ -543,51 +576,66 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
543
576
<varlistentry xml:id="pdo.constants.attr-stringify-fetches">
544
577
<term>
545
578
<constant>PDO::ATTR_STRINGIFY_FETCHES</constant>
546
-
(<type>integer</type>)
579
+
(<type>int</type>)
547
580
</term>
548
581
<listitem>
549
582
<simpara>
550
-

583
+
Forces all values fetched to be treated as strings.
551
584
</simpara>
552
585
</listitem>
553
586
</varlistentry>
554
587
<varlistentry xml:id="pdo.constants.attr-max-column-len">
555
588
<term>
556
589
<constant>PDO::ATTR_MAX_COLUMN_LEN</constant>
557
-
(<type>integer</type>)
590
+
(<type>int</type>)
558
591
</term>
559
592
<listitem>
560
593
<simpara>
561
-

594
+
Sets the maximum column name length.
562
595
</simpara>
563
596
</listitem>
564
597
</varlistentry>
565
598
<varlistentry xml:id="pdo.constants.attr-default-fetch-mode">
566
599
<term>
567
600
<constant>PDO::ATTR_DEFAULT_FETCH_MODE</constant>
568
-
(<type>integer</type>)
601
+
(<type>int</type>)
569
602
</term>
570
603
<listitem>
571
604
<simpara>
572
-
Available since PHP 5.2.0
605
+

573
606
</simpara>
574
607
</listitem>
575
608
</varlistentry>
576
609
<varlistentry xml:id="pdo.constants.attr-emulate-prepares">
577
610
<term>
578
611
<constant>PDO::ATTR_EMULATE_PREPARES</constant>
579
-
(<type>integer</type>)
612
+
(<type>int</type>)
613
+
</term>
614
+
<listitem>
615
+
<simpara>
616
+

617
+
</simpara>
618
+
</listitem>
619
+
</varlistentry>
620
+
<varlistentry xml:id="pdo.constants.attr-default-str-param">
621
+
<term>
622
+
<constant>PDO::ATTR_DEFAULT_STR_PARAM</constant>
623
+
(<type>int</type>)
580
624
</term>
581
625
<listitem>
582
626
<simpara>
583
-
Available since PHP 5.1.3.
627
+
Sets the default string parameter type, this can be one of <constant>PDO::PARAM_STR_NATL</constant>
628
+
and <constant>PDO::PARAM_STR_CHAR</constant>.
629
+
</simpara>
630
+
<simpara>
631
+
Available since PHP 7.2.0.
584
632
</simpara>
585
633
</listitem>
586
634
</varlistentry>
587
635
<varlistentry xml:id="pdo.constants.errmode-silent">
588
636
<term>
589
637
<constant>PDO::ERRMODE_SILENT</constant>
590
-
(<type>integer</type>)
638
+
(<type>int</type>)
591
639
</term>
592
640
<listitem>
593
641
<simpara>
...
...
@@ -601,7 +649,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
601
649
<varlistentry xml:id="pdo.constants.errmode-warning">
602
650
<term>
603
651
<constant>PDO::ERRMODE_WARNING</constant>
604
-
(<type>integer</type>)
652
+
(<type>int</type>)
605
653
</term>
606
654
<listitem>
607
655
<simpara>
...
...
@@ -614,7 +662,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
614
662
<varlistentry xml:id="pdo.constants.errmode-exception">
615
663
<term>
616
664
<constant>PDO::ERRMODE_EXCEPTION</constant>
617
-
(<type>integer</type>)
665
+
(<type>int</type>)
618
666
</term>
619
667
<listitem>
620
668
<simpara>
...
...
@@ -627,7 +675,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
627
675
<varlistentry xml:id="pdo.constants.case-natural">
628
676
<term>
629
677
<constant>PDO::CASE_NATURAL</constant>
630
-
(<type>integer</type>)
678
+
(<type>int</type>)
631
679
</term>
632
680
<listitem>
633
681
<simpara>
...
...
@@ -638,7 +686,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
638
686
<varlistentry xml:id="pdo.constants.case-lower">
639
687
<term>
640
688
<constant>PDO::CASE_LOWER</constant>
641
-
(<type>integer</type>)
689
+
(<type>int</type>)
642
690
</term>
643
691
<listitem>
644
692
<simpara>
...
...
@@ -649,7 +697,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
649
697
<varlistentry xml:id="pdo.constants.case-upper">
650
698
<term>
651
699
<constant>PDO::CASE_UPPER</constant>
652
-
(<type>integer</type>)
700
+
(<type>int</type>)
653
701
</term>
654
702
<listitem>
655
703
<simpara>
...
...
@@ -660,7 +708,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
660
708
<varlistentry xml:id="pdo.constants.null-natural">
661
709
<term>
662
710
<constant>PDO::NULL_NATURAL</constant>
663
-
(<type>integer</type>)
711
+
(<type>int</type>)
664
712
</term>
665
713
<listitem>
666
714
<simpara>
...
...
@@ -671,7 +719,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
671
719
<varlistentry xml:id="pdo.constants.null-empty-string">
672
720
<term>
673
721
<constant>PDO::NULL_EMPTY_STRING</constant>
674
-
(<type>integer</type>)
722
+
(<type>int</type>)
675
723
</term>
676
724
<listitem>
677
725
<simpara>
...
...
@@ -682,7 +730,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
682
730
<varlistentry xml:id="pdo.constants.null-to-string">
683
731
<term>
684
732
<constant>PDO::NULL_TO_STRING</constant>
685
-
(<type>integer</type>)
733
+
(<type>int</type>)
686
734
</term>
687
735
<listitem>
688
736
<simpara>
...
...
@@ -693,7 +741,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
693
741
<varlistentry xml:id="pdo.constants.fetch-ori-next">
694
742
<term>
695
743
<constant>PDO::FETCH_ORI_NEXT</constant>
696
-
(<type>integer</type>)
744
+
(<type>int</type>)
697
745
</term>
698
746
<listitem>
699
747
<simpara>
...
...
@@ -704,7 +752,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
704
752
<varlistentry xml:id="pdo.constants.fetch-ori-prior">
705
753
<term>
706
754
<constant>PDO::FETCH_ORI_PRIOR</constant>
707
-
(<type>integer</type>)
755
+
(<type>int</type>)
708
756
</term>
709
757
<listitem>
710
758
<simpara>
...
...
@@ -716,7 +764,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
716
764
<varlistentry xml:id="pdo.constants.fetch-ori-first">
717
765
<term>
718
766
<constant>PDO::FETCH_ORI_FIRST</constant>
719
-
(<type>integer</type>)
767
+
(<type>int</type>)
720
768
</term>
721
769
<listitem>
722
770
<simpara>
...
...
@@ -727,7 +775,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
727
775
<varlistentry xml:id="pdo.constants.fetch-ori-last">
728
776
<term>
729
777
<constant>PDO::FETCH_ORI_LAST</constant>
730
-
(<type>integer</type>)
778
+
(<type>int</type>)
731
779
</term>
732
780
<listitem>
733
781
<simpara>
...
...
@@ -738,7 +786,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
738
786
<varlistentry xml:id="pdo.constants.fetch-ori-abs">
739
787
<term>
740
788
<constant>PDO::FETCH_ORI_ABS</constant>
741
-
(<type>integer</type>)
789
+
(<type>int</type>)
742
790
</term>
743
791
<listitem>
744
792
<simpara>
...
...
@@ -750,7 +798,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
750
798
<varlistentry xml:id="pdo.constants.fetch-ori-rel">
751
799
<term>
752
800
<constant>PDO::FETCH_ORI_REL</constant>
753
-
(<type>integer</type>)
801
+
(<type>int</type>)
754
802
</term>
755
803
<listitem>
756
804
<simpara>
...
...
@@ -762,7 +810,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
762
810
<varlistentry xml:id="pdo.constants.cursor-fwdonly">
763
811
<term>
764
812
<constant>PDO::CURSOR_FWDONLY</constant>
765
-
(<type>integer</type>)
813
+
(<type>int</type>)
766
814
</term>
767
815
<listitem>
768
816
<simpara>
...
...
@@ -775,7 +823,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
775
823
<varlistentry xml:id="pdo.constants.cursor-scroll">
776
824
<term>
777
825
<constant>PDO::CURSOR_SCROLL</constant>
778
-
(<type>integer</type>)
826
+
(<type>int</type>)
779
827
</term>
780
828
<listitem>
781
829
<simpara>
...
...
@@ -787,14 +835,14 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
787
835
<varlistentry xml:id="pdo.constants.err-none">
788
836
<term>
789
837
<constant>PDO::ERR_NONE</constant>
790
-
(<type>string</type>)
838
+
(<type>string</type>)
791
839
</term>
792
840
<listitem>
793
841
<simpara>
794
842
Corresponds to SQLSTATE '00000', meaning that the SQL statement was
795
843
successfully issued with no errors or warnings. This constant is for
796
-
your convenience when checking <function>PDO::errorCode</function> or
797
-
<function>PDOStatement::errorCode</function> to determine if an error
844
+
your convenience when checking <methodname>PDO::errorCode</methodname> or
845
+
<methodname>PDOStatement::errorCode</methodname> to determine if an error
798
846
occurred. You will usually know if this is the case by examining the
799
847
return code from the method that raised the error condition anyway.
800
848
</simpara>
...
...
@@ -803,7 +851,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
803
851
<varlistentry xml:id="pdo.constants.param-evt-alloc">
804
852
<term>
805
853
<constant>PDO::PARAM_EVT_ALLOC</constant>
806
-
(<type>integer</type>)
854
+
(<type>int</type>)
807
855
</term>
808
856
<listitem>
809
857
<simpara>
...
...
@@ -814,7 +862,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
814
862
<varlistentry xml:id="pdo.constants.param-evt-free">
815
863
<term>
816
864
<constant>PDO::PARAM_EVT_FREE</constant>
817
-
(<type>integer</type>)
865
+
(<type>int</type>)
818
866
</term>
819
867
<listitem>
820
868
<simpara>
...
...
@@ -825,7 +873,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
825
873
<varlistentry xml:id="pdo.constants.param-evt-exec-pre">
826
874
<term>
827
875
<constant>PDO::PARAM_EVT_EXEC_PRE</constant>
828
-
(<type>integer</type>)
876
+
(<type>int</type>)
829
877
</term>
830
878
<listitem>
831
879
<simpara>
...
...
@@ -836,7 +884,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
836
884
<varlistentry xml:id="pdo.constants.param-evt-exec-post">
837
885
<term>
838
886
<constant>PDO::PARAM_EVT_EXEC_POST</constant>
839
-
(<type>integer</type>)
887
+
(<type>int</type>)
840
888
</term>
841
889
<listitem>
842
890
<simpara>
...
...
@@ -847,7 +895,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
847
895
<varlistentry xml:id="pdo.constants.param-evt-fetch-pre">
848
896
<term>
849
897
<constant>PDO::PARAM_EVT_FETCH_PRE</constant>
850
-
(<type>integer</type>)
898
+
(<type>int</type>)
851
899
</term>
852
900
<listitem>
853
901
<simpara>
...
...
@@ -858,7 +906,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
858
906
<varlistentry xml:id="pdo.constants.param-evt-fetch-post">
859
907
<term>
860
908
<constant>PDO::PARAM_EVT_FETCH_POST</constant>
861
-
(<type>integer</type>)
909
+
(<type>int</type>)
862
910
</term>
863
911
<listitem>
864
912
<simpara>
...
...
@@ -869,7 +917,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
869
917
<varlistentry xml:id="pdo.constants.param-evt-normalize">
870
918
<term>
871
919
<constant>PDO::PARAM_EVT_NORMALIZE</constant>
872
-
(<type>integer</type>)
920
+
(<type>int</type>)
873
921
</term>
874
922
<listitem>
875
923
<simpara>
...
...
@@ -878,9 +926,21 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
878
926
</simpara>
879
927
</listitem>
880
928
</varlistentry>
929
+
<varlistentry xml:id="pdo.constants.sqlite-deterministic">
930
+
<term>
931
+
<constant>PDO::SQLITE_DETERMINISTIC</constant>
932
+
(<type>int</type>)
933
+
</term>
934
+
<listitem>
935
+
<simpara>
936
+
Specifies that a function created with <methodname>PDO::sqliteCreateFunction</methodname>
937
+
is deterministic, i.e. it always returns the same result given the same inputs within
938
+
a single SQL statement. (Available as of PHP 7.1.4.)
939
+
</simpara>
940
+
</listitem>
941
+
</varlistentry>
881
942
</variablelist>
882
943
</appendix>
883
-

884
944
<!-- Keep this comment at the end of the file
885
945
Local variables:
886
946
mode: sgml
887
947