Skip to content

Commit fed74f3

Browse files
doc: use single quotes in sample SQL otherwise sqlite complains:P (#60)
Fixes: "Parse error: no such column: "now" - should this be a string literal in single-quotes?" error
1 parent c377eb8 commit fed74f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Connected to a transient in-memory database.
9797
Use ".open FILENAME" to reopen on a persistent database.
9898
sqlite> .open ./sample.db
9999
sqlite> CREATE TABLE table_sample(timestamp TEXT, description TEXT);
100-
sqlite> INSERT INTO table_sample VALUES(datetime("now"),"First sample data. Foo");
101-
sqlite> INSERT INTO table_sample VALUES(datetime("now"),"Second sample data. Bar");
100+
sqlite> INSERT INTO table_sample VALUES(datetime('now'),'First sample data. Foo');
101+
sqlite> INSERT INTO table_sample VALUES(datetime('now'),'Second sample data. Bar');
102102
sqlite> .quit
103103
$ ls
104104
sample.db

0 commit comments

Comments
 (0)