Skip to content
Browse files

misprint

  • Loading branch information...
1 parent a687af7 commit 87f7272bab2731eb16a442b02a2eee1637d0958a ivand committed with anandology
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookbook/sqlite-udf.md
View
2 cookbook/sqlite-udf.md
@@ -12,7 +12,7 @@ You can add python functions to sqlite and have them called within your queries.
Example:
<pre>
>>> import sqlite3 as db
->>> conn = db.connect(":memory")
+>>> conn = db.connect(":memory:")
>>> conn.create_function("sign", 1, lambda val: val and (val > 0 and 1 or -1))
>>> cur = conn.cursor()
>>> cur.execute("select 1, -1")

0 comments on commit 87f7272

Please sign in to comment.
Something went wrong with that request. Please try again.