Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
env:connect wasn't leaving the connection object in an officially ope…
Browse files Browse the repository at this point in the history
…n state
  • Loading branch information
blumf committed Jul 30, 2009
1 parent c49378b commit dce61d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ls_firebird.c
Expand Up @@ -957,6 +957,7 @@ static int env_connect (lua_State *L) {
res_conn = (conn_data*)lua_newuserdata(L, sizeof(conn_data));
luasql_setmeta (L, LUASQL_CONNECTION_FIREBIRD);
memcpy(res_conn, &conn, sizeof(conn_data));
res_conn->closed = 0; /* connect now officially open */

/* register the connection */
lua_registerobj(L, 1, env);
Expand Down

0 comments on commit dce61d4

Please sign in to comment.