From 6f9ebe677bf31d0c64046f18e6b0ac75340cb93e Mon Sep 17 00:00:00 2001 From: BohwaZ Date: Wed, 1 Aug 2018 17:45:20 -0400 Subject: Add \PDO::SQLITE_ATTR_READONLY_STATEMENT This attribute is a boolean value. It is taken from the return value of sqlite3_stmt_readonly(), indicating if and only if the prepared statement makes no direct changes to the content of the database. --- ext/pdo_sqlite/php_pdo_sqlite_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/pdo_sqlite/php_pdo_sqlite_int.h') diff --git a/ext/pdo_sqlite/php_pdo_sqlite_int.h b/ext/pdo_sqlite/php_pdo_sqlite_int.h index 7e9a97cf88..2cd855e75b 100644 --- a/ext/pdo_sqlite/php_pdo_sqlite_int.h +++ b/ext/pdo_sqlite/php_pdo_sqlite_int.h @@ -76,6 +76,7 @@ extern const struct pdo_stmt_methods sqlite_stmt_methods; enum { PDO_SQLITE_ATTR_OPEN_FLAGS = PDO_ATTR_DRIVER_SPECIFIC, + PDO_SQLITE_ATTR_READONLY_STATEMENT }; #endif -- cgit v1.2.1