1--TEST--
2SQLite3::query CREATE tests
3--EXTENSIONS--
4sqlite3
5--FILE--
6<?php
7
8require_once(__DIR__ . '/new_db.inc');
9
10echo "Creating Table\n";
11var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
12
13echo "Creating Same Table Again\n";
14var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15
16echo "Dropping database\n";
17var_dump($db->exec('DROP TABLE test'));
18
19echo "Closing database\n";
20var_dump($db->close());
21echo "Done\n";
22?>
23--EXPECTF--
24Creating Table
25bool(true)
26Creating Same Table Again
27
28Warning: SQLite3::exec(): table test already exists in %s on line %d
29bool(false)
30Dropping database
31bool(true)
32Closing database
33bool(true)
34Done
35