Skip to content

Commit 49a479b

Browse files
committed
ext/pdo_sqlite: fix minimal version for EXPLAIN feature support.
found out while working on php#18853 [ref.](https://www.sqlite.org/releaselog/3_43_1.html)
1 parent 2e2494f commit 49a479b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/pdo_sqlite/pdo_sqlite.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Sqlite extends \PDO
3939
/** @cvalue PDO_SQLITE_ATTR_EXPLAIN_STATEMENT */
4040
public const int ATTR_EXPLAIN_STATEMENT = UNKNOWN;
4141

42-
#if SQLITE_VERSION_NUMBER >= 3041000
42+
#if SQLITE_VERSION_NUMBER >= 3043000
4343
public const int EXPLAIN_MODE_PREPARED = 0;
4444
public const int EXPLAIN_MODE_EXPLAIN = 1;
4545
public const int EXPLAIN_MODE_EXPLAIN_QUERY_PLAN = 2;

ext/pdo_sqlite/pdo_sqlite_arginfo.h

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

ext/pdo_sqlite/sqlite_statement.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static int pdo_sqlite_stmt_get_attribute(pdo_stmt_t *stmt, zend_long attr, zval
393393
}
394394
break;
395395
case PDO_SQLITE_ATTR_EXPLAIN_STATEMENT:
396-
#if SQLITE_VERSION_NUMBER >= 3041000
396+
#if SQLITE_VERSION_NUMBER >= 3043000
397397
#if defined(__APPLE__)
398398
if (__builtin_available(macOS 14.2, *)) {
399399
#endif
@@ -420,7 +420,7 @@ static int pdo_sqlite_stmt_set_attribute(pdo_stmt_t *stmt, zend_long attr, zval
420420
{
421421
switch (attr) {
422422
case PDO_SQLITE_ATTR_EXPLAIN_STATEMENT:
423-
#if SQLITE_VERSION_NUMBER >= 3041000
423+
#if SQLITE_VERSION_NUMBER >= 3043000
424424
#if defined(__APPLE__)
425425
if (__builtin_available(macOS 14.2, *)) {
426426
#endif

0 commit comments

Comments
 (0)