webmcp

annotate demo-app/app/main/_postfork/01-db.lua @ 445:8145293e3f4a

Do not use luaL_addchar unless Lua string buffer is on top of stack (possible segmentation fault)
author jbe
date Mon May 16 15:41:58 2016 +0200 (2016-05-16)
parents 343f9af7f61f
children
rev   line source
jbe@261 1 local db = assert(mondelefant.connect(config.db))
jbe@261 2 function mondelefant.class_prototype:get_db_conn() return db end
jbe@261 3 _G.db = db
jbe@261 4 execute.inner()
jbe@261 5 db:close()

Impressum / About Us