blob: 559907c380e0a1924f78fdc5b7e9e6be656de25e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
PDO_sqlite: Testing PDOStatement::getAttribute()
--SKIPIF--
<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php
$db = new PDO('sqlite::memory:');
$st = $db->prepare('SELECT 1;');
var_dump($st->getAttribute(PDO::SQLITE_ATTR_READONLY_STATEMENT));
$st = $db->prepare('CREATE TABLE test (a TEXT);');
var_dump($st->getAttribute(PDO::SQLITE_ATTR_READONLY_STATEMENT));
?>
--EXPECTF--
bool(true)
bool(false)
|