dbd/sqlite3/connection.c

changeset 9
06eb2850703f
parent 4
c50b0e6f25d6
child 13
10c8c6f0da14
equal deleted inserted replaced
8:0b805fda1c91 9:06eb2850703f
10 10
11 const char *db = NULL; 11 const char *db = NULL;
12 connection_t *conn = NULL; 12 connection_t *conn = NULL;
13 13
14 /* db */ 14 /* db */
15 switch (n) { 15 switch(n) {
16 case 1: 16 default:
17 if (lua_isnil(L, 1) == 0) 17 if (lua_isnil(L, 1) == 0)
18 db = luaL_checkstring(L, 1); 18 db = luaL_checkstring(L, 1);
19 } 19 }
20 20
21 conn = (connection_t *)lua_newuserdata(L, sizeof(connection_t)); 21 conn = (connection_t *)lua_newuserdata(L, sizeof(connection_t));

mercurial