t, &stmt))    {        sqlite0_free (name);        return 0;    }         sqlite0_free (block);     }   if (lyr->hasExtraInsPoint)     {         attr_name = create_extra_attr_table_name (name);         if (append && check_extra_attr_table (handle, attr_name))    {        /* appending into the already existing table */        if (!create_extra_stmt     (handle, attr_name, &stmt_ext))     return 0;    }         else    {        /* creating the Extra Attribute table */        if (!create_insert_extra_attr_table     (handle, name, attr_name, &stmt_ext))          {       sqlite0_finalize (stmt);       return 0;          }    }     }   ret = sqlite0_exec (handle, "BEGIN", NULL, NULL, NULL);   if (ret != SQLITE_OK)     {         spatialite_e ("BEGIN %s error: %s\n", name,         sqlite0_errmsg (handle));         sqlite0_finalize (stmt);         if (stmt_ext != NULL)      sqlite0_finalize (stmt_ext);         sqlite0_free (name);         if (attr_name)      sqlite0_free (attr_name);         return 0;     }   ins = lyr->first_ins_po