mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
35 lines
717 B
Plaintext
35 lines
717 B
Plaintext
|
--TEST--
|
||
|
SQLite3::query CREATE tests
|
||
|
--SKIPIF--
|
||
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
require_once(dirname(__FILE__) . '/new_db.inc');
|
||
|
|
||
|
echo "Creating Table\n";
|
||
|
var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
|
||
|
|
||
|
echo "Creating Same Table Again\n";
|
||
|
var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
|
||
|
|
||
|
echo "Dropping database\n";
|
||
|
var_dump($db->exec('DROP TABLE test'));
|
||
|
|
||
|
echo "Closing database\n";
|
||
|
var_dump($db->close());
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Creating Table
|
||
|
bool(true)
|
||
|
Creating Same Table Again
|
||
|
|
||
|
Warning: SQLite3::exec(): table test already exists in %s on line %d
|
||
|
bool(false)
|
||
|
Dropping database
|
||
|
bool(true)
|
||
|
Closing database
|
||
|
bool(true)
|
||
|
Done
|