Detail the example

This commit is contained in:
Ivan Ukhov
2015-08-03 16:12:09 -04:00
parent 75bd2d94b6
commit a6de11a000
3 changed files with 49 additions and 27 deletions

View File

@ -145,7 +145,7 @@ fn statement_read() {
fn setup<T: AsRef<Path>>(path: T) -> Connection {
let connection = ok!(sqlite::open(path));
ok!(connection.execute("
CREATE TABLE users (id INTEGER, name VARCHAR(255), age REAL, photo BLOB);
CREATE TABLE users (id INTEGER, name TEXT, age REAL, photo BLOB);
INSERT INTO users (id, name, age, photo) VALUES (1, 'Alice', 42.69, X'4269');
"));
connection