Skip to content

Commit c290996

Browse files
committed
Remove MYSQLI_TYPE_INTERVAL constant
1 parent cce27c6 commit c290996

7 files changed

+5
-11
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,10 @@ PHP 8.4 UPGRADE NOTES
882882
. The MYSQLI_CURSOR_TYPE_FOR_UPDATE and MYSQLI_CURSOR_TYPE_SCROLLABLE
883883
constants have been removed. This functionality was never implemented,
884884
neither with mysqlnd nor with libmysql.
885+
. The unused MYSQLI_TYPE_INTERVAL constant, which is currently a stub
886+
and an alias for MYSQLI_TYPE_ENUM, has been removed. There are no
887+
plans to add such data type to MySQL yet, so it's unclear what its value
888+
would finally be.
885889
. A new constant has been added: MYSQLI_TYPE_VECTOR.
886890

887891
- Mysqlnd

ext/mysqli/mysqli.stub.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,6 @@
390390
* @cvalue FIELD_TYPE_CHAR
391391
*/
392392
const MYSQLI_TYPE_CHAR = UNKNOWN;
393-
/**
394-
* @var int
395-
* @cvalue FIELD_TYPE_INTERVAL
396-
*/
397-
const MYSQLI_TYPE_INTERVAL = UNKNOWN;
398393
/**
399394
* @var int
400395
* @cvalue FIELD_TYPE_GEOMETRY

ext/mysqli/mysqli_arginfo.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysqli/tests/bug_mysql_49406.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ require_once 'skipifconnectfailure.inc';
5858
MYSQLI_TYPE_STRING => "STRING",
5959
MYSQLI_TYPE_NULL => "NULL",
6060
MYSQLI_TYPE_NEWDATE => "NEWDATE",
61-
MYSQLI_TYPE_INTERVAL => "INTERVAL",
6261
MYSQLI_TYPE_GEOMETRY => "GEOMETRY",
6362
);
6463

ext/mysqli/tests/mysqli_constants.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ $expected_constants = array(
7575
"MYSQLI_TYPE_VAR_STRING" => true,
7676
"MYSQLI_TYPE_STRING" => true,
7777
"MYSQLI_TYPE_CHAR" => true,
78-
"MYSQLI_TYPE_INTERVAL" => true,
7978
"MYSQLI_TYPE_GEOMETRY" => true,
8079
"MYSQLI_NO_DATA" => true,
8180
"MYSQLI_REPORT_INDEX" => true,

ext/mysqli/tests/mysqli_fetch_field_types.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ require_once 'skipifconnectfailure.inc';
9292
MYSQLI_TYPE_STRING => array("SET('I', 'smash', 'the')", 'smash'),
9393
MYSQLI_TYPE_NULL => 'MYSQLI_TYPE_NULL - TODO add testing',
9494
MYSQLI_TYPE_NEWDATE => 'MYSQLI_TYPE_NEWDATE - TODO add testing',
95-
MYSQLI_TYPE_INTERVAL => 'MYSQLI_TYPE_INTERVAL - TODO add testing',
9695
MYSQLI_TYPE_GEOMETRY => 'MYSQLI_TYPE_GEOMETRY - TODO add testing',
9796
);
9897

ext/mysqlnd/mysqlnd_enum_n_def.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ typedef enum mysqlnd_server_option
332332
#define FIELD_TYPE_VAR_STRING MYSQL_TYPE_VAR_STRING
333333
#define FIELD_TYPE_STRING MYSQL_TYPE_STRING
334334
#define FIELD_TYPE_CHAR MYSQL_TYPE_TINY
335-
#define FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM
336335
#define FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY
337336
#define FIELD_TYPE_BIT MYSQL_TYPE_BIT
338337

0 commit comments

Comments
 (0)