Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/examples/lua Fix flags for DB open.
details: https://anonhg.NetBSD.org/src/rev/abed53e1a29e
branches: trunk
changeset: 353513:abed53e1a29e
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Wed May 10 07:37:33 2017 +0000
description:
Fix flags for DB open.
diffstat:
share/examples/lua/sqlite.lua | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r aa5a68919401 -r abed53e1a29e share/examples/lua/sqlite.lua
--- a/share/examples/lua/sqlite.lua Wed May 10 07:36:01 2017 +0000
+++ b/share/examples/lua/sqlite.lua Wed May 10 07:37:33 2017 +0000
@@ -1,4 +1,4 @@
--- $NetBSD: sqlite.lua,v 1.3 2015/12/08 23:04:40 kamil Exp $
+-- $NetBSD: sqlite.lua,v 1.4 2017/05/10 07:37:33 mbalmer Exp $
local sqlite = require 'sqlite'
@@ -13,7 +13,8 @@
sqlite.libversion_number() .. ')')
print('sourceid ' .. sqlite.sourceid())
-db, state = sqlite.open('/tmp/db.sqlite', sqlite.OPEN_CREATE)
+db, state = sqlite.open('/tmp/db.sqlite', sqlite.OPEN_READWRITE |
+ sqlite.OPEN_CREATE)
if state ~= sqlite.OK then
print('db open failed')
Home |
Main Index |
Thread Index |
Old Index