/* Close the cursor on top of the stack. Return 1  */
static int cur_close(lua_State *L)
/* Close the cursor on top of the stack. Return 1  */
static int cur_close(lua_State *L)
{
		lua_pushboolean (L, 0);
		return 1;
	}
	cur->closed = 1;
	PQclear(cur->pg_res);
	luaL_unref (L, LUA_REGISTRYINDEX, cur->conn);
	luaL_unref (L, LUA_REGISTRYINDEX, cur->colnames);
	luaL_unref (L, LUA_REGISTRYINDEX, cur->coltypes);
	lua_pushboolean (L, 1);
	return 1;
}