1--TEST--
2PDO_sqlite: Testing PDOStatement::getAttribute()
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7
8$db = new PDO('sqlite::memory:');
9
10$st = $db->prepare('SELECT 1;');
11
12var_dump($st->getAttribute(PDO::SQLITE_ATTR_READONLY_STATEMENT));
13
14$st = $db->prepare('CREATE TABLE test (a TEXT);');
15
16var_dump($st->getAttribute(PDO::SQLITE_ATTR_READONLY_STATEMENT));
17?>
18--EXPECT--
19bool(true)
20bool(false)
21