/* Creates the lists of fields names and fields types.  */
static void create_colinfo(lua_State *L, cur_data *cur)
/* Creates the lists of fields names and fields types.  */
static void create_colinfo(lua_State *L, cur_data *cur)
{
		lua_pushstring (L, fields[i-1].name);
		lua_rawseti (L, -3, i);
		sprintf (typename, "%.20s(%ld)", getcolumntype (fields[i-1].type), fields[i-1].length);
		lua_pushstring(L, typename);
		lua_rawseti (L, -2, i);
	}
	cur->coltypes = luaL_ref (L, LUA_REGISTRYINDEX);
	cur->colnames = luaL_ref (L, LUA_REGISTRYINDEX);
}