Changeset 16500

Show
Ignore:
Timestamp:
05/29/08 10:08:27 (5 months ago)
Author:
piotras
Message:

Get number of returned rows when initializing sitegroup and languages lists.
Throw info when language code seems to be incorrect

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/core/midgard/src/midgard_connection.c

    r16466 r16500  
    575575        gint rows, ret_rows;  
    576576        const GValue *guid_value, *id_value; 
    577          
     577 
     578        ret_rows = gda_data_model_get_n_rows(model); 
     579 
    578580        _CacheIDS **ids = id_list_new(ret_rows); 
    579581         
     
    10941096        guint id = id_list_lookup(ids, language); 
    10951097                 
    1096         if(id == 0) 
     1098        if(id == 0) { 
     1099                mgd_info("Couldn't find id for '%s' language", language);        
    10971100                return FALSE; 
     1101        } 
    10981102 
    10991103        g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO,