1--TEST--
2PDO_sqlite: Testing PDOStatement::getAttribute()
3--SKIPIF--
4<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
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