1--TEST--
2SQLite3:: reset
3--CREDITS--
4Ward Hus & James Cauwelier
5#@ PHP TESTFEST 2009 (BELGIUM)
6--EXTENSIONS--
7sqlite3
8--FILE--
9<?php
10
11$db = new SQLite3(':memory:');
12
13$db->exec('CREATE TABLE foo (id INTEGER, bar STRING)');
14$db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')");
15
16$stmt = $db->prepare('SELECT bar FROM foo WHERE id=:id');
17$stmt->bindValue(':id', 1, SQLITE3_INTEGER);
18$stmt->reset();
19
20//var_dump($db);
21//var_dump($db->close());
22echo "Done\n";
23?>
24--EXPECT--
25Done
26